Comments (2)
You push()
the master onto the walker then hide()
the feature branch. An example is given of doing exactly this in the USAGE.rb file. See:
https://github.com/libgit2/rugged/blob/development/USAGE.rb#L116-132
Also, see:
https://github.com/libgit2/rugged/blob/development/README.md#refs
if you have any confusion about how to get the master and feature-branch refs for the Walker.
from rugged.
Oh! Thanks for the quick reply. So this is to say that there is no interface to git log
, so to generate that list, I will need to (1) get a complete list of refs in feature-branch
(which, since it's branched off master will be ~20,000), then iterate through every ref in master (~20,000) and see if it is contained by the array of commits in my feature branch. Right? Or am I missing something here?
But maybe I have bigger problems. Attempting various things from the Readme and Usage docs yields various exceptions:
ruby-1.9.3-p194 :003 > repo.refs(/tags/)
ArgumentError: wrong number of arguments (1 for 0)
ruby-1.9.3-p194 :009 > repo.loookup "779fbb1e17e666832773a9825875300ea736c2da"
NoMethodError: undefined method `loookup' for #<Rugged::Repository:0x007fa5eb847a18>
ruby-1.9.3-p194 :022 > Rugged::Version
=> "0.16.0"
Is it possible the docs have been updated to reflect new functionality but the gem version didn't get bumped?
Also couldn't find doc for Rugged::Repository#refs
in the rdoc, class appears to simply be Enumerator
.
ruby-1.9.3-p194 :027 > repo.refs.class
=> Enumerator
from rugged.
Related Issues (20)
- Add support for custom extensions HOT 1
- rugged misinterpreting branch name as a SHA HOT 1
- 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
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.