Re: [PATCH] git-add -u: match the index with working tree.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Apr 20, 2007, 11:17 UTC
- Message-ID
- <7vejmfz44g.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20070420104930.GB13560@diana.vm.bytemark.co.uk>
Karl Hasselström <kha@treskal.com> writes:
Show 10 quoted lines
> On 2007-04-20 01:42:18 -0700, Junio C Hamano wrote: > >> This is a shorthand of what "git commit -a" does in preparation >> for making a commit, > [snip] >> -"git-add [-n] [-v] [-f] [--interactive | -i] [--] <filepattern>..."; >> +"git-add [-n] [-v] [-f] [--interactive | -i] [-u] [--] <filepattern>..."; > > Any particular reason for choosing a different letter than the > -a/--all that git commit uses?
I picked "-u" instead of "-a" because I wanted to stress that this is about "updating" (which has connotation that it is relative to something, and in this case it is relative to the current "index"), and not about "all", which "-a" would imply.