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.