git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: regarding "git status"

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
May 13, 2010, 14:17 UTC
Message-ID
<86pr0zdgy7.fsf@red.stonehenge.com>
In-Reply-To
<loom.20100513T155553-871@post.gmane.org>
>>>>> "Terrence" == Terrence Brannon <schemelab@gmail.com> 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@stonehenge.com> <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
Previous: Terrence BrannonNext: Matthieu Moy
Message 2 of 3 in “regarding "git status"”
  1. Terrence BrannonMay 13, 2010
  2. Randal L. SchwartzMay 13, 2010
  3. Matthieu MoyMay 13, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.