rugged
rugged copied to clipboard
ruby bindings to libgit2
It can be useful to respect people's chosen names without rewriting history. Can we support the `.mailmap` file so that the authors names are updated? Thanks
Git paths have no inherent encoding, they are opaque binary strings that can be in any encoding. The [macro `rb_str_new_utf8`](https://github.com/libgit2/rugged/blob/c78ba61e66d7525310e9ede33e809e956812e273/ext/rugged/rugged.h#L30) is used in places to convert raw C strings representing...
Given any repo cloned with e.g. `--depth=1`, In `1.6.3` `head.target.parent_oids` gives the correct list of references. In `1.7.1` it is an empty set `[]`
By default, `libgit2` will throw an error if you try to open a repository not owned by the current user. An option to disable this validation is available, but wasn't...
According to [docs](https://www.rubydoc.info/gems/rugged/1.6.3/Rugged%2FRepository%2Eclone_at) > :remote > The name to give to the “origin” remote. Defaults to "origin". But doesn't produce any results. I've tested this with rugged 1.4.4, 1.5.3, 1.6.3...
This happens (at least) due to https://github.com/libgit2/libgit2/commit/9dd1bfe81c3aba6ce35ed85bf62fa75d9c61e1a6 in which the allocators have been simplified.
GitHub is not letting me create this PR against v1.5.0.1 which is the tag I branched off of... --- Edit 1: looks like need to ensure libgit2 is compiled with...
- [x] ! search at first system header for git2 then vendor's one. please refer to [patch](https://git.altlinux.org/gears/g/gem-rugged.git?p=gem-rugged.git;a=blob;f=system_git2.patch;h=c6bd3b1e899522250c1fcfefdec51cb210531c6b;hb=f63322fa19292a2968e883e7870acac74aeff3e8)
Hello! Based on my understanding of: https://github.com/libgit2/rugged/blob/6379f23cedd5f527cf6a5c229627e366b590a22d/ext/rugged/extconf.rb#L69, it should find the libgit2 prefix (LIBGIT2_DIR) using either a `--with-git2-dir=$my-prefix` passed to `gem install`, or automatically via `pkg-config`. Neither works on my...
Noticed that passing same options object to `Commit#diff` causes strange behaviour of reversing diff every second usage. This fixes the behaviour using same way as [`Repository#diff`](https://github.com/libgit2/rugged/blob/6379f23cedd5f527cf6a5c229627e366b590a22d/lib/rugged/repository.rb#L114).