Git Product home page Git Product logo

Comments (2)

arrbee avatar arrbee commented on June 18, 2024

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.

sdhull avatar sdhull commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.