Re: [PATCH v2 1/4] doc: git-add: start man page with an example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> I think Julia is referring to the fact that you can record the state
>> that is different from what is in the index (or, what has been
>> accumulated in the index by the past use of "git add" command that
>> is being discussed here) with "git commit [-i] <pathspec>".  You can
>> do
>> 
>>     $ edit fileA fileB ;# assume both are tracked
>>     $ git add fileA
>>     $ git commit fileB

I was actually thinking of `git commit -a`, but it amounts to the same thing.

I'm going to remove the "By default": I agree it introduces some
unnecessary confusion, similar to the "It typically adds..." in the current
version of the man page. I'll instead be more explicit:
"When you run `git commit` without any other arguments.."




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux