Comments (5)
Thanks for reporting this. I pushed a fix (f7pd393) for passing down --
to the command to be ran.
As for the second issue it's not possible to expand numbers after --
as those will be passed intact to the command. What you can do instead is use git-list
to expand it, e.g.: gl -- $(git-list 7)
from git-number.
How about gl --- 7
feature?
Triple -
will mean to process string after ---
and pass result as -- lib/Invoice/Schema/Result/Company.pm
.
This will save a lot of typing.
For comparison:
gl --- 7 xx 9
gl -- $(git-list 7) xx $(git-list 9)
from git-number.
Interesting idea! I'm not opposed to that. It will be a bit tricky to implement though.
from git-number.
Something like this would work perhaps:
$ git diff git-number
diff --git git-number git-number
index 43f6637..f00e652 100755
--- git-number
+++ git-number
@@ -140,6 +140,11 @@ while (scalar @ARGV) {
last;
}
+ if ($arg eq '---') {
+ push(@args, '--');
+ next;
+ }
+
if ( $arg =~ m/^[0-9][0-9]*$/ ) {
push @args, split("\n", `git-list $arg`);
$converted=1;
Just need some unit tests and it should be good, I think.
from git-number.
Checked new version. Works fine. Thank you very much for fixes.
from git-number.
Related Issues (20)
- 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
- Quote Issue HOT 1
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.