From: Jakub Narebski Date: Mon, 22 May 2006 15:27:31 GMT Subject: Re: [PATCH 3/3] tutorial: add discussion of index file, object database Message-ID: In-Reply-To: <1148255528.61d5d241.2@fieldses.org> J. Bruce Fields wrote: > +With the right arguments, git diff can also show us the difference > +between the working directory and the last commit, or between the > +index and the last commit: > + > +------------------------------------------------ > +$ git diff HEAD [...] > +$ git diff --cached Junio C Hamano wrote: > Also, ":" to mean the > entry in the index is often equivalent to "git diff --cached". > > IOW, these are obscure special purpose notation, and I do not > think tutorial is a good place to cover them. Hmm, wouldn't it be nice to have here : mentioned as alternative/extension to --cached, and : including HEAD: as an extension of HEAD, and as an extension to not having arguments? By extension I mean adding path limiting and some more advanced selection of things to diff. -- Jakub Narebski Warsaw, Poland