Re: [PATCH] builtin-tag: fix fallouts from recent parsopt restriction.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 17, 2007, 11:21 UTC
- Message-ID
- <7v1w9la7o8.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20071217105834.GG7453@artemis.madism.org>
Pierre Habouzit <madcoder@debian.org> writes:
Show 9 quoted lines
> On Mon, Dec 17, 2007 at 10:53:00AM +0000, Junio C Hamano wrote: > ... >> This is just a quick idea before I go back to sleep, but your earlier >> comment on "--no-<an-option-that-is-not-even-boolean>" made me realize >> that the alternative I was suggesting earlier would actually work much >> nicer, if you introduce "--<an-option-that-take-optional-arg>-default" >> magic. > > meeeow I love the idea !
There is a bit more serious issue than coding, actually.
Short options.
A script wants to use default rename detection threshold for unknown commit $foo whose name might look like a number. IOW, this
git diff -M $foo
could be ambiguous. Obviously, "git diff -M-default $foo" would not fly very well.