Giter Site home page Giter Site logo

Comments (8)

joeldrapper avatar joeldrapper commented on July 19, 2024 5

Is there an example of how to get the current branch name with this?

from gulp-git.

stephenlacy avatar stephenlacy commented on July 19, 2024

Would you want it to send an 'error' stating the current branch as well?

'gulp-git: Branch name is required. On branch 'master''

from gulp-git.

robrich avatar robrich commented on July 19, 2024

Given the overhead of shelling out to get this, it seems extraneous to get it for an error message. My particular use-case is I want git log -1 --format=%h (sometimes --format=%H) and git branch | grep "*" so I can get the current git hash and git branch name to stick into minified css and js header comments.

from gulp-git.

brenwell avatar brenwell commented on July 19, 2024

Hey guys,

nice lib

is there a way to get the current branch?

from gulp-git.

robrich avatar robrich commented on July 19, 2024

Yes, see #27. Vote it up to merge.

from gulp-git.

stephenlacy avatar stephenlacy commented on July 19, 2024

I will be merging it, caught up with other activities.

from gulp-git.

stephenlacy avatar stephenlacy commented on July 19, 2024

Finally got to merge it about 2 am...

Thanks

from gulp-git.

stephenlacy avatar stephenlacy commented on July 19, 2024

@joeldrapper: #141 (comment)

from gulp-git.

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.