Re: regarding "git status"

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

 



>>>>> "Terrence" == Terrence Brannon <schemelab@xxxxxxxxx> writes:

Terrence> In the manpage for git-status
Terrence> (http://www.kernel.org/pub/software/scm/git/docs/git-status.html) it says:

Terrence> "Displays paths that have differences between the index file
Terrence> and the current HEAD commit"

Terrence> but how could something be added to the index and not be
Terrence> different from the current HEAD commit? shouldnt this sentence
Terrence> say: "displays paths that have been added to the index"

The HEAD commit might have changed without changing the index via
something like "git reset --soft $sha1".  So yes, either the index or
the head might have changed, and this is reporting the differences
between them.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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]