Thread (6 messages) flat view 6 messages, 4 authors, 2016-06-15

Re: [PATCH 3/3] git-add --intent-to-add (-N)

From: Paolo Bonzini <hidden>
Date: 2016-06-15 22:45:12

Possibly related (same subject, not in this thread)

Junio C Hamano wrote:
This adds "--intent-to-add" option to "git add".  This is to let the
system know that you will tell it the final contents to be staged later,
iow, just be aware of the presense of the path with the type of the blob
for now.
While I like intent_* in the variables, what about "git add --path FILE" 
for the user interface?  Also, I wonder if it would be good to restrict 
"git add --path" to paths not already in the index, and give an error 
otherwise.

As I said elsewhere in the thread, I wouldn't use this feature (I keep a 
"git citool" window open to review my own changes, when I have to deal 
with new files), but I applaud its introduction.
Then you can do:

    $ git commit -a ;# commit everything

or

    $ git commit oldfile ;# only oldfile, newfile not yet added
Did you mean "git commit" for the second use case?

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help