Comments (3)
The invocation should be like this:
$ git number checkout 1
Anything that comes after -- are passed verbatim
from git-number.
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.
You got a point there.
The option parsing code in git-number
and git-id
definitely need rework.
from git-number.
Related Issues (20)
- Ignore not file numbers HOT 1
- bash completion does not work HOT 2
- can not reset renamed files HOT 2
- git number breaks 'git add' HOT 3
- implement numbers for `git pull` HOT 1
- feature-request: display number for `git log --stat` HOT 1
- Preserve symlink in path HOT 5
- Many tests fail on macOS 10.13 HOT 7
- git-number should safely escape all arguments HOT 2
- git-number mix-up numbers HOT 6
- It doesn't work properly in VSCode v1.19.0 HOT 1
- reset deleted files HOT 5
- FR: Implement option to generate absolute path HOT 1
- Git number do not work if some arguments are passed to git HOT 2
- Reset renamed files do not work HOT 2
- Just a thought HOT 1
- Implement support for `--short` option of `status` command HOT 1
- missing license for the repo HOT 1
- git-number doesn't seem to work with filenames that include spaces HOT 1
- Any args given after `--' are passed to the underlying command verbatim. HOT 5
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 git-number.