Re: Commiting automatically (2)
- From
- Maaartin <grajcar1@seznam.cz>
- Date
- Dec 20, 2010, 05:12 UTC
- Message-ID
- <loom.20101220T060758-200@post.gmane.org>
- In-Reply-To
- <20101219183619.GB11955@burratino>
Jonathan Nieder <jrnieder <at> gmail.com> writes:
Show 12 quoted lines
> Hmm, the "git add" manual suggests it is the other way around: > > -A, --all > Like -u, but match <filepattern> against files in the working > tree in addition to the index. That means that it will find new > files as well as staging modified content and removing files > that are no longer in the working tree. > > So I would expect "git add -A" to do the same thing as "git add -u", > plus handling added files. > > Maaartin, could you give an example showing where add -A goes wrong?
I can't, since I was wrong. These commits have two parents (I'm not sure if this is a good idea), and that's why I saw no changes in the log. Actually, "git add - A" does everything I need, and with "/bin/cp .git/index $GIT_INDEX_FILE" everything seems to work. Sorry for the noise.