Re: Please default to 'commit -a' when no changes were added
- From
- Goswin von Brederlow <goswin-v-b@web.de>
- Date
- Apr 23, 2010, 09:15 UTC
- Message-ID
- <87iq7ittq6.fsf@frosties.localdomain>
- In-Reply-To
- <20100422222723.GB12000@progeny.tock>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 19 quoted lines
> Adam Brewster wrote: > >> Consider >> >> $ echo -e '#!/bin/bash\nif git diff-tree --quiet HEAD; then git commit >> -a; else git commit; fi' > `git --exec-path`/git-ci >> $ chmod 555 `git --exec-path`/git-ci > > Or just put it in your $PATH. :) > > By the way, all this talk of âif there is an indexâ sounds funny to > my brainwashed ears. Every version control system I have tried uses > an index to ensure consistency during a commit; itâs just that most > of them hide it from the user. > > This may sound pedantic, I realize. > > Have fun, > Jonathan
Other RCS use an index of files they track. Git uses an index of patch chunks to commit. Same name, totaly different concept.
Or am I understanding that wrong?
MfG
Goswin