rugged
rugged copied to clipboard
ruby bindings to libgit2
Hello, I'm working on transitioning my project over to using rugged. I'm amazed at the performance improvements that we've seen so far. I'm getting down to the last few operations...
Current version of clone_at and fetch dont release GVL when transfering data between client and server, so I just simply dup clone_at and fetch to remove their GVL and rename...
> [Doc](http://www.rubydoc.info/github/libgit2/rugged/Rugged%2FTree.diff) :ignore_submodules | if true, submodules will be excluded from the diff completely. -- | -- > Problem ```ruby repo = Rugged::Repository.new('.') commit = repo.head.target_id diff = Rugged::Tree.diff(repo, nil,...
Commit#diff_workdir refers to Tree#diff_workdir. > [Doc: Tree#diff_workdir](http://www.rubydoc.info/github/libgit2/rugged/Rugged/Tree#diff_workdir-instance_method) Returns a diff between a tree and the current workdir. The tree object will be used as the “old file” side of the...
How do I checkout a tag or create a branch from a tag. Getting `Rugged::InvalidError: the requested type does not match the type in ODB` ```ruby name = 'testbranch' target...
sorry is it possible to fetch just new tags with rugged api ?
Given the repository attached, and this small script: ```ruby require 'rugged' repo = Rugged::Repository.new('repro/.git') diff = Rugged::Tree.diff(repo, repo.rev_parse('309dd700bcfa6de727c43f159013f5b109412669').tree, repo.rev_parse('f010d6f0c3ede1d69ef387d63afc7cc334632c8e').tree, show_binary: true) diff.find_similar! puts diff.map(&:to_s).join("\n") ``` The resulting diff shows this:...
While upgrading to Ruby 2.3.4, I had to compile a custom OpenSSL version because it depends on v1.0.x whereas my Arch Linux was already on v1.1. So it was compiled...
I've looked quite a bit but can't find anything about submodule support. So, is it supported? I see that it's not possible with `checkout` but what about manually enumerating `repo.submodules`?
http://www.rubydoc.info/github/libgit2/rugged/Rugged%2FRepository%3Awrite It says it should return an `Rugged::Object` but it returns an `oid` string.