-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git-missing: do proper argument parsing. Fix #562 #565
git-missing: do proper argument parsing. Fix #562 #565
Conversation
Thanks so much for this one! |
Tested and working on |
Thanks, @qw3rtman. I found something that will break this, and that is the |
@nicolaiskogheim hi! now that this change is on |
No, sorry. We will have to do a release first. When that will be I don't know. |
After #534 ? |
Hi @nicolaiskogheim, Sorry in advance if I sound pedantic but, looking at that PR (#532) there are no news since June.. Wondering if you guys can just do a patch release...? ( |
Yeah, you're right, it has been a long time. We do have a lot of stuff that should be released. |
@nicolaiskogheim, made a new issue for further discussion: #579. |
Ref #562
This is a rewrite of
git-missing
to make it behave like the docs says it will.I have tested by running these commands, which should be enough:
That last one may seem stupid, but argument parsing, and especially passing arguments along to other commands in bash can be very tricky, so that one is important.
git log
doesn't care about duplicate arguments, so that's alright.Only tested on OSX, with bash 4.3.46(1)-release.
I don't think there is anything that would make this crash on other systems, but I will test it on FreeBsd and Arch tomorrow.
Possible future enhancements:
git-missing
will get confused with a call looking like this:git missing --option value firstbranch secondbranch
. I don't know ifgit log
accepts any argument on the form--arg value
. I scannedman git-log
and it doesn't look like it, butgit log
understands hundreds of different arguments it looks like, so I may be wrong.