Re: [PATCH 1/6] gitopt: a new command-line option parser for git

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Timo Hirvonen <tihirvon@...>
Cc: <git@...>
Date: Tuesday, May 9, 2006 - 3:18 pm

Timo Hirvonen <tihirvon@gmail.com> wrote:

It is more for me.  Many programs that I use already accept bundled
switches, and '=' and '-' are relatively far away and requires me
to stretch my hand uncomfortably (I have very small hands, and have
limited mobility in several fingers).


git has always supported optional argument handling like this.

I'm striving for backwards compatibility with existing usage.  That
means as a diff option, -C alone works, as does -C20.  I've made -C 20
_not_ work because it breaks existing usage (where 20 could be a
filename, or a tree-ish).  -C=20 would mean something
else, since I wanted to make pickaxe work exactly as it did before:
-S=var would search for '=var', not 'var'.

-- 
Eric Wong
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/6] gitopt: a new command-line option parser for..., Eric Wong, (Tue May 9, 3:18 pm)
[PATCH 2/6] update-index: convert to using gitopt, Eric Wong, (Tue May 9, 1:06 am)
[PATCH 3/6] ls-tree: convert to gitopt, Eric Wong, (Tue May 9, 1:06 am)
[PATCH 4/6] ls-files: convert to using gitopt, Eric Wong, (Tue May 9, 1:06 am)