Giter Club home page Giter Club logo

Comments (5)

holygeek avatar holygeek commented on September 25, 2024 1

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.

KES777 avatar KES777 commented on September 25, 2024

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.

holygeek avatar holygeek commented on September 25, 2024

Interesting idea! I'm not opposed to that. It will be a bit tricky to implement though.

from git-number.

holygeek avatar holygeek commented on September 25, 2024

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.

KES777 avatar KES777 commented on September 25, 2024

Checked new version. Works fine. Thank you very much for fixes.

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.