git-add --verbose should say when something is already indexed

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

git-add --verbose should say when something is already indexed

From: <hidden>
Date: 2016-06-15 22:45:50

git-add or at least git-add --verbose should say upon
$ git-add bla.txt
$ git-add bla.txt
bla.txt is already in the index.

The git-add man page should mention how one can see all the files
added, perhaps by git-ls-files. If so mention in SEE ALSO too.

Re: git-add --verbose should say when something is already indexed

From: Nanako Shiraishi <hidden>
Date: 2016-06-15 22:45:50

Quoting jidanni@jidanni.org:
git-add or at least git-add --verbose should say upon
$ git-add bla.txt
$ git-add bla.txt
bla.txt is already in the index.
I do not think it should.

I suspect that you misunderstand what "git add" is. It is not about adding a new path to be tracked. Rather, it is to add the current contents of the file (unless --interactive is used).

You told git to add the contents of "bla.txt" to the index as path "bla.txt". I do not think there is anything more to report after it did exactly what it was told to do.

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help