Re: regarding "git status"

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

 



Terrence Brannon <schemelab@xxxxxxxxx> writes:

> In the manpage for git-status
> (http://www.kernel.org/pub/software/scm/git/docs/git-status.html) it says:
>
> "Displays paths that have differences between the index file and the current
> HEAD commit"
>
> but how could something be added to the index and not be different from the
> current HEAD commit?

The index doesn't contain the _differences_ between what you're about
to commit and HEAD, it contains _all_ the content you're going to
commit, i.e. if you have no new stuff to commit, it contains the same
thing as HEAD (in a slightly different form: HEAD uses just the object
database, while .git/index is roughly an array of files).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
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]