Giter Club home page Giter Club logo

Comments (3)

holygeek avatar holygeek commented on June 24, 2024

The invocation should be like this:

$ git number checkout 1

Anything that comes after -- are passed verbatim

from git-number.

rcdailey avatar rcdailey commented on June 24, 2024

That's not going to work. What if I'm trying to check out a file that has the same name as one of my branches?

"--" is now ambiguous in this case. It's accepted by both git-number and git-checkout as valid parameters. Basically I want to pass in the "--" literally to the git subcommand. So maybe you could choose a different symbol for your "literal passthrough" that doesn't clash with git's accepted version?

Maybe do this instead:

$ git number -s ++ -b

Which will allow me to do this:

$ git number checkout -- 1

And since you use ++, you won't parse out the -- and it will work the same as before.

from git-number.

holygeek avatar holygeek commented on June 24, 2024

You got a point there.

The option parsing code in git-number and git-id definitely need rework.

from git-number.

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.