Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: Commiting automatically (2)

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:50:16

Taylor Hedberg wrote:
On Sun, Dec 19, 2010 at 08:29:50AM +0000, Maaartin wrote:
quoted
There's one more problem. My script doesn't recognize deleted files, since
git add -A
does nothing to them. I'm quite sure I saw a solution to this, but can't find 
it now...
I believe "git add -u" will do the same thing as "git add -A", plus
handle deleted files.
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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help