{"thread":{"id":"17927","subject":"whitespace checking in git-add?","startedAt":"2009-02-20T23:04:54Z","lastAt":"2009-02-21T19:40:41Z","messageCount":5,"participants":["Chris Frey","Nicolas Pitre","Sverre Rabbelier"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"105665","messageId":"20090220230454.GA10112@foursquare.net","threadId":"17927","inReplyTo":null,"subject":"whitespace checking in git-add?","fromName":"Chris Frey","fromEmail":"cdfrey@foursquare.net","sentAt":"2009-02-20T23:04:54Z","receivedAt":"2009-02-20T23:04:54Z","isPatch":false,"sender":{"key":"cdfrey@foursquare.net","avatar":null},"body":"Hi,\n\nIs it possible to somehow enable whitespace checking during git-add?\nIn my searches, I can only seem to find mention of it in git-diff.\n\nThanks,\n- Chris\n"},{"id":"105686","messageId":"alpine.LFD.2.00.0902202109010.5511@xanadu.home","threadId":"17927","inReplyTo":"20090220230454.GA10112@foursquare.net","subject":"Re: whitespace checking in git-add?","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2009-02-21T02:14:25Z","receivedAt":"2009-02-21T02:14:25Z","isPatch":false,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Fri, 20 Feb 2009, Chris Frey wrote:\n\n> Hi,\n> \n> Is it possible to somehow enable whitespace checking during git-add?\n> In my searches, I can only seem to find mention of it in git-diff.\n\nOne thing you can do is:\n\n 1) 'git add' and 'git commit' as usual\n\n 2) run 'git rebase -f --whitespace=fix HEAD~'\n\n\nNicolas\n"},{"id":"105703","messageId":"fabb9a1e0902210321k6bdd8726jea7c930a5a61cce5@mail.gmail.com","threadId":"17927","inReplyTo":"alpine.LFD.2.00.0902202109010.5511@xanadu.home","subject":"Re: whitespace checking in git-add?","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-02-21T11:21:38Z","receivedAt":"2009-02-21T11:21:38Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Sat, Feb 21, 2009 at 03:14, Nicolas Pitre <nico@cam.org> wrote:\n>  2) run 'git rebase -f --whitespace=fix HEAD~'\n\nThanks for the plug ;), but you should note that that only works on a\nvery recent git. It's not even in master yet, according to [0] it's\nbeen in next for only 7 days.\n\n[0] http://repo.or.cz/w/git.git?a=search&h=refs/heads/next&st=commit&s=srabbelier\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"105738","messageId":"alpine.LFD.2.00.0902211424490.5511@xanadu.home","threadId":"17927","inReplyTo":"fabb9a1e0902210321k6bdd8726jea7c930a5a61cce5@mail.gmail.com","subject":"Re: whitespace checking in git-add?","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2009-02-21T19:26:15Z","receivedAt":"2009-02-21T19:26:15Z","isPatch":false,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Sat, 21 Feb 2009, Sverre Rabbelier wrote:\n\n> Heya,\n> \n> On Sat, Feb 21, 2009 at 03:14, Nicolas Pitre <nico@cam.org> wrote:\n> >  2) run 'git rebase -f --whitespace=fix HEAD~'\n> \n> Thanks for the plug ;), but you should note that that only works on a\n> very recent git. It's not even in master yet, according to [0] it's\n> been in next for only 7 days.\n\nOh, OK...  Still better than a non existing feature.\n\n\nNicolas\n"},{"id":"105740","messageId":"fabb9a1e0902211140l7f3671bt2d175f36300ded7b@mail.gmail.com","threadId":"17927","inReplyTo":"alpine.LFD.2.00.0902211424490.5511@xanadu.home","subject":"Re: whitespace checking in git-add?","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-02-21T19:40:41Z","receivedAt":"2009-02-21T19:40:41Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Sat, Feb 21, 2009 at 20:26, Nicolas Pitre <nico@cam.org> wrote:\n> On Sat, 21 Feb 2009, Sverre Rabbelier wrote:\n>> On Sat, Feb 21, 2009 at 03:14, Nicolas Pitre <nico@cam.org> wrote:\n>> >  2) run 'git rebase -f --whitespace=fix HEAD~'\n>>\n>> Thanks for the plug ;), but you should note that that only works on a\n>> very recent git. It's not even in master yet, according to [0] it's\n>> been in next for only 7 days.\n>\n> Oh, OK...  Still better than a non existing feature.\n\nThat's true :). Btw, it's also possible to do:\n$ git rebase --whitespace=fix HEAD~\n\nThe --whitespace=fix will automagically turn on the -f :).\n\n-- \nCheers,\n\nSverre Rabbelier\n"}]}