{"thread":{"id":"6190","subject":"git not tracking changes","startedAt":"2007-01-02T05:52:16Z","lastAt":"2007-01-02T09:54:13Z","messageCount":3,"participants":["Deepak Barua","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"30653","messageId":"b5a19cd20701012152n4f496198h93cab1b9b85a9a45@mail.gmail.com","threadId":"6190","inReplyTo":null,"subject":"git not tracking changes","fromName":"Deepak Barua","fromEmail":"dbbarua@gmail.com","sentAt":"2007-01-02T05:52:16Z","receivedAt":"2007-01-02T05:52:16Z","isPatch":false,"sender":{"key":"dbbarua@gmail.com","avatar":null},"body":"Hi,\n    When i do a git add of a config.h file then make some changes and\nthen do git commit it does not reflect the changes..\neg\ndep@zion:~/programs/elinks/elinks-0.11-20061220$ git add config.h\ndep@zion:~/programs/elinks/elinks-0.11-20061220$ vi config.h\ndep@zion:~/programs/elinks/elinks-0.11-20061220$ git commit\nnothing to commit\ndep@zion:~/programs/elinks/elinks-0.11-20061220$ git commit\nnothing to commit\ndep@zion:~/programs/elinks/elinks-0.11-20061220$ ls\nABOUT-NLS     autogen.sh  config.h       configure     debian\nINSTALL             Makefile.lib  SITES   TODO\nacinclude.m4  BUGS        config.h.in    configure.in  doc\nMakefile            NEWS          src     Unicode\naclocal.m4    ChangeLog   config.log     contrib       features.conf\nMakefile.config     po            test\nAUTHORS       config      config.status  COPYING       features.log\nMakefile.config.in  README        THANKS\ndep@zion:~/programs/elinks/elinks-0.11-20061220$\n\nI am working on the hooks part modifying the perl script in the same\nin the pre-commit hook but that is not related to this ...\nwhat could be the problem...?\n\nAlso another file which you can see in the directory called \"NEWS\" is\nbeing taken in to consideration...\nthe hook \"pre-commit\" is enabled and am adding a spell checker to it...\nRegards\nDeepak\n\n\n\n-- \nCode Code Code Away\n"},{"id":"30654","messageId":"20070102055937.GD27690@spearce.org","threadId":"6190","inReplyTo":"b5a19cd20701012152n4f496198h93cab1b9b85a9a45@mail.gmail.com","subject":"Re: git not tracking changes","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-01-02T05:59:37Z","receivedAt":"2007-01-02T05:59:37Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Deepak Barua <dbbarua@gmail.com> wrote:\n> Hi,\n>    When i do a git add of a config.h file then make some changes and\n> then do git commit it does not reflect the changes..\n> eg\n> dep@zion:~/programs/elinks/elinks-0.11-20061220$ git add config.h\n\nHere you told Git to take the current contents of config.h and\nstage it into the index.  That content will be in the next\ncommit.\n\n> dep@zion:~/programs/elinks/elinks-0.11-20061220$ vi config.h\n\nThen you modify it.  Git doesn't know about those changes to\nconfig.h, nor does it care at this point.\n\n> dep@zion:~/programs/elinks/elinks-0.11-20061220$ git commit\n> nothing to commit\n\nThis is occuring because the content staged in the index does not\ndiffer from the content in HEAD (the last commit on this branch).\nYou need to run `git add config.h` again now that you have modified\nit to restage the modified file.\n\nBasically I'm assuming that when you ran `git add config.h` the\nfirst time the content must have matched HEAD, which meant you\ndidn't actually stage anything.\n\n-- \nShawn.\n"},{"id":"30666","messageId":"b5a19cd20701020154w63fd4c4s46a6cb3c6f50ce5a@mail.gmail.com","threadId":"6190","inReplyTo":"20070102055937.GD27690@spearce.org","subject":"Re: git not tracking changes","fromName":"Deepak Barua","fromEmail":"dbbarua@gmail.com","sentAt":"2007-01-02T09:54:13Z","receivedAt":"2007-01-02T09:54:13Z","isPatch":false,"sender":{"key":"dbbarua@gmail.com","avatar":null},"body":"Thank you shawn.\n\nRegards\nDeepak\n\nOn 1/2/07, Shawn O. Pearce <spearce@spearce.org> wrote:\n> Deepak Barua <dbbarua@gmail.com> wrote:\n> > Hi,\n> >    When i do a git add of a config.h file then make some changes and\n> > then do git commit it does not reflect the changes..\n> > eg\n> > dep@zion:~/programs/elinks/elinks-0.11-20061220$ git add config.h\n>\n> Here you told Git to take the current contents of config.h and\n> stage it into the index.  That content will be in the next\n> commit.\n>\n> > dep@zion:~/programs/elinks/elinks-0.11-20061220$ vi config.h\n>\n> Then you modify it.  Git doesn't know about those changes to\n> config.h, nor does it care at this point.\n>\n> > dep@zion:~/programs/elinks/elinks-0.11-20061220$ git commit\n> > nothing to commit\n>\n> This is occuring because the content staged in the index does not\n> differ from the content in HEAD (the last commit on this branch).\n> You need to run `git add config.h` again now that you have modified\n> it to restage the modified file.\n>\n> Basically I'm assuming that when you ran `git add config.h` the\n> first time the content must have matched HEAD, which meant you\n> didn't actually stage anything.\n>\n> --\n> Shawn.\n>\n\n\n-- \nCode Code Code Away\n"}]}