Git – Best Ruby Git library

gitruby

Which is the best Git library in Ruby to use?
Git, Grit, Rugged, Other?

Background: I'm the current maintainer of TicGit-ng which is a distributed offline ticket system built on git, and I've read and heard over and over again that Grit is the one I should use because it supersedes the Git gem, but there seems to be either a lack of documentation or a lack of features because myself and others have failed in trying to switch from the deprecated-but-functional Git to the newer Grit gem.

Best Answer

It looks like both the Git and Grit gems are now deprecated and should not be used in new projects. Work has already begun on a Git library written in C, and a ruby library which interfaces with it is also in the works. This new ruby interface to the git library is called Rugged.

https://github.com/libgit2/rugged

Once completed, this should be the Git gem that is used in new projects.

Update(Nov24/2012): Grit is seeing new activity from new contributors and should not be automatically excluded from consideration. Rugged is based on the libgit2 C library, both of which are under active development. Grit is a pure ruby implementation of Git and is also seeing active development. It is my opinion that you should breifly research both at implementation time to determine which has become the best fit for your use.

Related Topic