Comments (3)
Hey @rhaamo, funny seeing you here ;)
I have found this to be the workflow:
walker = Rugged::Walker.new("~/repo")
walker.push(sha_of_last_commit_as_string)
walker.walk { |c| puts c.inspect }
Let me know if that works for you
from rugged.
That should do the trick. You can also push repo.HEAD
as the last commit string. That should get you moving. Commit diffs will be available as soon as they are on libgit2. Working on it!
from rugged.
Ok thanks :)
from rugged.
Related Issues (20)
- Failed to build gem native extension: library not found for -lssh2 HOT 3
- No documentation on how to build rugged v1.4 with ssh support HOT 2
- Cannot install 1.5.0, 1.4.4 works fine. HOT 9
- Support for .mailmap when reading authors? HOT 2
- Read files from remote repository without cloning HOT 3
- cannot load such file -- rugged/2.7/rugged (LoadError) HOT 3
- Ruby 3.2 compatibility fix is not yet released HOT 10
- Problems installing
- Release new version containing 9f9bce7 HOT 1
- Rugged::Repository.init_at does not create a branch HOT 2
- extconf.rb doesn't find libgit2 from GNU Guix HOT 2
- no tag for 1.6.3 HOT 1
- libssh2 issues with Ruby profilers -- would a workaround PR be acceptable? HOT 9
- invalid or unknown remote ssh hostkey when connecting to Github.com HOT 1
- pygit2 has Repository.merge method but Rugged does not HOT 2
- Rugged is incompatible with libgit2-1.7
- rugged does not seem to work with TruffleRuby HOT 2
- Rugged::Repository#clone_at :upstream option has no effect HOT 2
- Parent Refs Inaccurate On Shallow Graft Commits
- libgit2 1.8: TreeToTreeDiffTest#test_each_line_patch_header fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rugged.