{"thread":{"id":"22286","subject":"Feature idea: Ignore content","startedAt":"2010-01-19T13:29:27Z","lastAt":"2010-01-19T19:24:23Z","messageCount":5,"participants":["Ramkumar Ramachandra","Peter Krefting","Jacob Helwig","Dirk Süsserott"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"132102","messageId":"f3271551001190529h389ce321k52dcca6b03e4e8f0@mail.gmail.com","threadId":"22286","inReplyTo":null,"subject":"Feature idea: Ignore content","fromName":"Ramkumar Ramachandra","fromEmail":"artagnon@gmail.com","sentAt":"2010-01-19T13:29:27Z","receivedAt":"2010-01-19T13:29:27Z","isPatch":false,"sender":{"key":"r@artagnon.com","avatar":"https://avatars.githubusercontent.com/u/37226?v=4"},"body":"Hi,\n\nOften, I find that I need to track a file which contains a small\nportion I don't want to track (read: line with a password). Instead of\nmoving that out to a separate file and ignoring that file, is it a\ngood idea to add a feature to Git to allow ignoring content instead of\nwhole files? Since Git by nature tracks content, this shouldn't be too\nhard to implement, right?\n"},{"id":"132104","messageId":"alpine.DEB.2.00.1001191504020.23165@ds9.cixit.se","threadId":"22286","inReplyTo":"f3271551001190529h389ce321k52dcca6b03e4e8f0@mail.gmail.com","subject":"Re: Feature idea: Ignore content","fromName":"Peter Krefting","fromEmail":"peter@softwolves.pp.se","sentAt":"2010-01-19T14:05:08Z","receivedAt":"2010-01-19T14:05:08Z","isPatch":false,"sender":{"key":"peter@softwolves.pp.se","avatar":"https://avatars.githubusercontent.com/u/990764?v=4"},"body":"Ramkumar Ramachandra:\n\n> Instead of moving that out to a separate file and ignoring that file, is \n> it a good idea to add a feature to Git to allow ignoring content instead \n> of whole files?\n\nYou should be able to do that by setting up a filter. Please see \ngitattributes(5) for more information (search for \"filter\").\n\n-- \n\\\\// Peter - http://www.softwolves.pp.se/\n"},{"id":"132118","messageId":"8c9a061001190857i12a8deeex74809ffd302bc54d@mail.gmail.com","threadId":"22286","inReplyTo":"f3271551001190529h389ce321k52dcca6b03e4e8f0@mail.gmail.com","subject":"Re: Feature idea: Ignore content","fromName":"Jacob Helwig","fromEmail":"jacob.helwig@gmail.com","sentAt":"2010-01-19T16:57:00Z","receivedAt":"2010-01-19T16:57:00Z","isPatch":false,"sender":{"key":"jacob.helwig@gmail.com","avatar":"https://avatars.githubusercontent.com/u/14557?v=4"},"body":"On Tue, Jan 19, 2010 at 05:29, Ramkumar Ramachandra <artagnon@gmail.com> wrote:\n> Hi,\n>\n> Often, I find that I need to track a file which contains a small\n> portion I don't want to track (read: line with a password). Instead of\n> moving that out to a separate file and ignoring that file, is it a\n> good idea to add a feature to Git to allow ignoring content instead of\n> whole files? Since Git by nature tracks content, this shouldn't be too\n> hard to implement, right?\n>\n\nGenerally, the way I've seen this handled is by tracking an example\nfile, and ignoring the \"real\" file with the password.\n\nSomething like:\n  config/database.example.yml <-- Tracked file, with a dummy password\n& connection info.\n  config/database.yml    <-- Ignored file, actually used by application.\n"},{"id":"132136","messageId":"4B56049C.6070705@dirk.my1.cc","threadId":"22286","inReplyTo":"alpine.DEB.2.00.1001191504020.23165@ds9.cixit.se","subject":"Re: Feature idea: Ignore content","fromName":"Dirk Süsserott","fromEmail":"newsletter@dirk.my1.cc","sentAt":"2010-01-19T19:14:36Z","receivedAt":"2010-01-19T19:14:36Z","isPatch":false,"sender":{"key":"newsletter@dirk.my1.cc","avatar":null},"body":"Am 19.01.2010 15:05 schrieb Peter Krefting:\n> Ramkumar Ramachandra:\n> \n>> Instead of moving that out to a separate file and ignoring that file, \n>> is it a good idea to add a feature to Git to allow ignoring content \n>> instead of whole files?\n> \n> You should be able to do that by setting up a filter. Please see \n> gitattributes(5) for more information (search for \"filter\").\n> \n\nHi Ramkumar,\n\nplease have a look at this thread:\nhttp://marc.info/?t=125882165900001&r=1&w=2\nespecially Björn's suggestion to use a 'clean filter'. It worked fine\nfor me with a similar problem: I wanted Git to ignore a certain pattern\nin my files.\n\nHTH,\nDirk\n"},{"id":"132135","messageId":"f3271551001191124s3f6b97f2te6ca8f3e9a9b1b9d@mail.gmail.com","threadId":"22286","inReplyTo":"4B56049C.6070705@dirk.my1.cc","subject":"Re: Feature idea: Ignore content","fromName":"Ramkumar Ramachandra","fromEmail":"artagnon@gmail.com","sentAt":"2010-01-19T19:24:23Z","receivedAt":"2010-01-19T19:24:23Z","isPatch":false,"sender":{"key":"r@artagnon.com","avatar":"https://avatars.githubusercontent.com/u/37226?v=4"},"body":"> http://marc.info/?t=125882165900001&r=1&w=2\n\nFantastic- I had no idea that such a feature even existed. I got it to\nwork nicely. Thanks!\n"}]}