{"thread":{"id":"18145","subject":"Re: How to ignore a modified file?","startedAt":"2009-03-05T08:53:08Z","lastAt":"2009-03-05T13:58:02Z","messageCount":4,"participants":["Quim K Holland","Sverre Rabbelier","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"107031","messageId":"20090305145308.6117@qkholland.gmail.com","threadId":"18145","inReplyTo":null,"subject":"Re: How to ignore a modified file?","fromName":"Quim K Holland","fromEmail":"qkholland@gmail.com","sentAt":"2009-03-05T08:53:08Z","receivedAt":"2009-03-05T08:53:08Z","isPatch":false,"sender":{"key":"qkholland@gmail.com","avatar":null},"body":"You can run \"git checkout directory\".\n\n> Hi, \n>   I run \"git status\", and I saw the a modified file in a directory.  I want\n> to ignore all files in that directory.  I put the directory name into\n> .gitignore, but it still shows as modified file.  Why?  How do I ignore the\n> directory?\n> Thanks.\n> -- \n> View this message in context: http://n2.nabble.com/How-to-ignore-a-modified-file--tp2428157p2428157.html\n> Sent from the git mailing list archive at Nabble.com.\n"},{"id":"107045","messageId":"fabb9a1e0903050209i1e70c8b3n69d7ade9e382b617@mail.gmail.com","threadId":"18145","inReplyTo":"20090305145308.6117@qkholland.gmail.com","subject":"Re: How to ignore a modified file?","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-03-05T10:09:45Z","receivedAt":"2009-03-05T10:09:45Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Thu, Mar 5, 2009 at 09:53, Quim K Holland <qkholland@gmail.com> wrote:\n> You can run \"git checkout directory\".\n\nYes, but that would destroy his changes, I do not get the impression\nthat that's what he wants...\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"107048","messageId":"7v4oy82rt4.fsf@gitster.siamese.dyndns.org","threadId":"18145","inReplyTo":"fabb9a1e0903050209i1e70c8b3n69d7ade9e382b617@mail.gmail.com","subject":"Re: How to ignore a modified file?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-03-05T10:21:43Z","receivedAt":"2009-03-05T10:21:43Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Sverre Rabbelier <srabbelier@gmail.com> writes:\n\n> Heya,\n>\n> On Thu, Mar 5, 2009 at 09:53, Quim K Holland <qkholland@gmail.com> wrote:\n>> You can run \"git checkout directory\".\n>\n> Yes, but that would destroy his changes, I do not get the impression\n> that that's what he wants...\n\nActually, I thought the advises from you two were both horrible without\nfirst qualifying the answers nor asking what was really wanted.\n\nYours didn't *ignore* changes, but staged (and would result in a later\ncommit) a different change to these paths, namely removal of them.\n\n\"I have these changes but I want to ignore\" may mean \"I didn't mean to\nchange them and do not care about them.\" and \"checkout\" may be the right\nthing to use if that is the case.\n"},{"id":"107069","messageId":"fabb9a1e0903050558q311f0a7fy50a5c29fa86067ca@mail.gmail.com","threadId":"18145","inReplyTo":"7v4oy82rt4.fsf@gitster.siamese.dyndns.org","subject":"Re: How to ignore a modified file?","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-03-05T13:58:02Z","receivedAt":"2009-03-05T13:58:02Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Thu, Mar 5, 2009 at 11:21, Junio C Hamano <gitster@pobox.com> wrote:\n> Yours didn't *ignore* changes, but staged (and would result in a later\n> commit) a different change to these paths, namely removal of them.\n\nYou are of course right, thank you for pointing it out.\n\n-- \nCheers,\n\nSverre Rabbelier\n"}]}