From: John Keeping Date: Wed, 08 May 2013 10:51:42 GMT Subject: Re: Minor correction to Git book 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: > 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.