Re: [Census] So who uses git?
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 1, 2006, 22:50 UTC
- Message-ID
- <7v8xsu7kys.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0602011717010.5397@localhost.localdomain>
Nicolas Pitre <nico@cam.org> writes:
> Actually, my opinion is that should be the behavior for your first item > above (when only filenames are specified). If you want to _also_ > include the index like you describe in your first item then an > additional switch should be provided.
OK, agreed. Sorry to be slow.
So, to recap:
git commit paths... (temporary index thing) git commit --incremental paths... (same as current w/o --incremental) git commit (same as current) git commit -a (same as current)
And I agree with Joel that we should not automatically imply "git add" with or without --incremental.
I do not particularly have much preference among --also, --with-index, or --incremental, but:
- 'with-index' is precise but might be too technical; - 'incremental' is not really incremental -- you can use it only once.
Because you do not have to say "git commit --also" without paths (which _is_ awkward) to get the traditional behaviour, maybe it is a good name for that flag (it is also the shortest).