GithubHelp home page GithubHelp logo

Revision Walking about node-gitteh HOT 4 OPEN

libgit2 avatar libgit2 commented on June 15, 2024
Revision Walking

from node-gitteh.

Comments (4)

samcday avatar samcday commented on June 15, 2024

@vdurbha

This was present in the original implementation of gitteh, I haven't yet gotten around to re-adding it in the latest version (which was nearly a complete rewrite).

Technically you can still revision walk without the actual revwalk API however. All you need to do is grab HEAD and follow it's parent commits. That being said, I do want to re-add this as soon as possible.

I'll keep this issue open and update once revwalk returns.

-Sam

from node-gitteh.

vdurbha avatar vdurbha commented on June 15, 2024

Great. Thanks. Yes I was able to grab HEAD and follow the parents. I guess the only reason to use Walker would be to sort the entries I guess. I'll give it a shot when it becomes available.

from node-gitteh.

mildsunrise avatar mildsunrise commented on June 15, 2024

This is being done as part of the cleanup, see #29.

from node-gitteh.

andreypopp avatar andreypopp commented on June 15, 2024

I needed such functionality and implemented it myself in a separate package — https://github.com/andreypopp/gitteh-log/blob/master/index.coffee

See previousCommitsSeq function which returns a lazy sequence (provided by reduced package) of commits previous to a provided one as an argument. it's not as straightforward as simple event emitter but I've found lazy sequences to be much more nicer API.

from node-gitteh.

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.