Compare on your machine for me in a ruby benchmark 1000 times i m seeing differences between code to be double the time in rugged as shelling out to git log.
Rugged vs ruby git.
See the issue for more details.
Maybe i m better off just running git log reverse and parsing the results but as long as there s this nice ruby library for working with git i figure i ll use it.
The collection of libraries and resources is based on the awesome ruby list and direct contributions here.
Generated by cgit v0 10 2 at 2020 10 03 06 24 47 gmt.
This is faster than rugged repository new as it won t attempt to perform any git directory discovery won t try to load the config options to determine whether the repository is bare and won t try to load the workdir.
It gives you the speed and portability of libgit2 with the beauty of the ruby language.
To add a new gem please check the contribute section.
Rugged is a library for accessing libgit2 in ruby.
Optionally you can pass a list of alternate object folders or an options hash.
Contribute to siman man rugged examples development by creating an account on github.
I d like to examine the sha1 and the comment for each.
It s designed to be fast and portable.
Rugged is a library that provides ruby api bindings for libgit2 a c implementation of the git operations rugged is quickly replacing grit and similar ruby libraries because it performs operations on the git repository using direct api calls instead of calling git as a system command.
This tip demonstrates how to use rugged to commit a new file to git and leave behind a clean working directory.
Open a bare git repository at path and return a repository object representing it.
I d like to use rugged to iterate through all the commits on a particular branch from the oldest first to the newest last.
Libgit2 is a pure c implementation of the git core methods.
Libgit2 bindings in ruby.
6 6 3 8 l3.
7 8 5 8 l4 git cop vs rugged ruby bindings to libgit2.