Git development
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: Terrence Brannon <schemelab@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: regarding "git status"
Date: Thu, 13 May 2010 16:20:32 +0200	[thread overview]
Message-ID: <vpqtyqbc28f.fsf@bauges.imag.fr> (raw)
In-Reply-To: <loom.20100513T155553-871@post.gmane.org> (Terrence Brannon's message of "Thu\, 13 May 2010 13\:56\:06 +0000 \(UTC\)")

Terrence Brannon <schemelab@gmail.com> 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/

      parent reply	other threads:[~2010-05-13 14:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13 13:56 regarding "git status" Terrence Brannon
2010-05-13 14:17 ` Randal L. Schwartz
2010-05-13 14:20 ` Matthieu Moy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vpqtyqbc28f.fsf@bauges.imag.fr \
    --to=matthieu.moy@grenoble-inp.fr \
    --cc=git@vger.kernel.org \
    --cc=schemelab@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox