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

Re: Minor correction to Git book

From
John Keeping <john@keeping.me.uk>
Date
May 8, 2013, 10:51 UTC
Message-ID
<20130508105141.GH25912@serenity.lan>
In-Reply-To
<71E08C07CB3C444098033ABD69925159145BB1DDE1@BATH-EXCMS.praxis.local>
On Wed, May 08, 2013 at 11:24:56AM +0100, Robin Messer wrote:
Show 11 quoted lines
> I'm just learning Git so I don't yet know how to submit this
> as a patch, but I'm reading the Git Book to get myself started
> and I think there is a mistake on the page at:
> 
> http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository
> 
> It says: "For another example, if you stage the benchmarks.rb file and
> then edit it, you can use git diff to see the changes in the file that
> are staged and the changes that are unstaged:"
> 
> I believe this should say "git status" rather than "git diff".

I think the text is correct as it stands. "git status" shows you that there are changes that are staged and unstaged, "git diff" (and "git diff --cached") shows you what those changes are.

Previous: Robin MesserNext: Robin Messer
Message 2 of 4 in “Minor correction to Git book”
  1. Robin MesserMay 8, 2013
  2. John KeepingMay 8, 2013
  3. Robin MesserMay 8, 2013
  4. John KeepingMay 8, 2013

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.