On 10/4/07, Miklos Vajna <vmiklos@xxxxxxxxxxxxxx> wrote: > On Thu, Oct 04, 2007 at 02:27:41PM +0200, Paolo Ciarrocchi <paolo.ciarrocchi@xxxxxxxxx> wrote: > > Why do we have the option "--cached" and not "--index"? > > according to glossary.txt, 'cache' is an obsolete for 'index'. probably > this is the reason > > probably cache.h will be never renamed to index.h, i don't know if diff > --cached will be ever renamed to diff --index Believe me, for a GIT newbie git --cached is confusing. That user started reading "A tutorial introduction to git (for version 1.5.1 or newer)", after a cuple of minutes of reading he reached "Making changes" saw: " You are now ready to commit. You can see what is about to be committed using git-diff(1) with the —cached option: $ git diff --cached " $ git diff --index sound a lof more consistent with the general documentation. Regards, -- Paolo http://paolo.ciarrocchi.googlepages.com/ http://ubuntista.blogspot.com - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html