{"thread":{"id":"23797","subject":"regarding \"git status\"","startedAt":"2010-05-13T13:56:06Z","lastAt":"2010-05-13T14:20:32Z","messageCount":3,"participants":["Terrence Brannon","Randal L. Schwartz","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"141590","messageId":"loom.20100513T155553-871@post.gmane.org","threadId":"23797","inReplyTo":null,"subject":"regarding \"git status\"","fromName":"Terrence Brannon","fromEmail":"schemelab@gmail.com","sentAt":"2010-05-13T13:56:06Z","receivedAt":"2010-05-13T13:56:06Z","isPatch":false,"sender":{"key":"schemelab@gmail.com","avatar":null},"body":"In the manpage for git-status\n(http://www.kernel.org/pub/software/scm/git/docs/git-status.html) it says:\n\n\"Displays paths that have differences between the index file and the current\nHEAD commit\"\n\nbut how could something be added to the index and not be different from the\ncurrent HEAD commit? shouldnt this sentence say: \"displays paths that have been\nadded to the index\"\n"},{"id":"141591","messageId":"86pr0zdgy7.fsf@red.stonehenge.com","threadId":"23797","inReplyTo":"loom.20100513T155553-871@post.gmane.org","subject":"Re: regarding \"git status\"","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2010-05-13T14:17:20Z","receivedAt":"2010-05-13T14:17:20Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Terrence\" == Terrence Brannon <schemelab@gmail.com> writes:\n\nTerrence> In the manpage for git-status\nTerrence> (http://www.kernel.org/pub/software/scm/git/docs/git-status.html) it says:\n\nTerrence> \"Displays paths that have differences between the index file\nTerrence> and the current HEAD commit\"\n\nTerrence> but how could something be added to the index and not be\nTerrence> different from the current HEAD commit? shouldnt this sentence\nTerrence> say: \"displays paths that have been added to the index\"\n\nThe HEAD commit might have changed without changing the index via\nsomething like \"git reset --soft $sha1\".  So yes, either the index or\nthe head might have changed, and this is reporting the differences\nbetween them.\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nSmalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.\nSee http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion\n"},{"id":"141592","messageId":"vpqtyqbc28f.fsf@bauges.imag.fr","threadId":"23797","inReplyTo":"loom.20100513T155553-871@post.gmane.org","subject":"Re: regarding \"git status\"","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2010-05-13T14:20:32Z","receivedAt":"2010-05-13T14:20:32Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Terrence Brannon <schemelab@gmail.com> writes:\n\n> In the manpage for git-status\n> (http://www.kernel.org/pub/software/scm/git/docs/git-status.html) it says:\n>\n> \"Displays paths that have differences between the index file and the current\n> HEAD commit\"\n>\n> but how could something be added to the index and not be different from the\n> current HEAD commit?\n\nThe index doesn't contain the _differences_ between what you're about\nto commit and HEAD, it contains _all_ the content you're going to\ncommit, i.e. if you have no new stuff to commit, it contains the same\nthing as HEAD (in a slightly different form: HEAD uses just the object\ndatabase, while .git/index is roughly an array of files).\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"}]}