{"thread":{"id":"9567","subject":"Extending .gitignore","startedAt":"2007-08-18T09:43:50Z","lastAt":"2007-08-18T10:00:42Z","messageCount":2,"participants":["Dmitry Kakurin","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"50975","messageId":"C0E9F681E68D48EB8989022D11FEE3D1@ntdev.corp.microsoft.com","threadId":"9567","inReplyTo":null,"subject":"Extending .gitignore","fromName":"Dmitry Kakurin","fromEmail":"dmitry.kakurin@gmail.com","sentAt":"2007-08-18T09:43:50Z","receivedAt":"2007-08-18T09:43:50Z","isPatch":false,"sender":{"key":"dmitry.kakurin@gmail.com","avatar":null},"body":"Currently .gitignore serves (at least) 2 purposes:\n1. Specifies which files to ignore during git add\n2. Specifies which files to ignore during git cleanup, but still deletes them with git cleanup -x\nSo it effectively splits files in 2 categories.\n\nI always find myself with 3 categories of files:\n1. Important files that I want tracked by SCM (normal files like *.c)\n2. Unimportant files that I want ignored by SCM and cleaned (usually build files like *.obj, *.exe)\n3. Important files that I don't want to be tracked by SCM but also I don't want them to be cleaned either (these are usually \nmachine-specific config files)\n\nSo I want to be able to say to git: don't track this file, but don't delete it either (even with clean -x).\nWhat do you think? Does it make sense? Can it be done right now?\n\n- Dmitry \n"},{"id":"50978","messageId":"7vr6m1cgc5.fsf@gitster.siamese.dyndns.org","threadId":"9567","inReplyTo":"C0E9F681E68D48EB8989022D11FEE3D1@ntdev.corp.microsoft.com","subject":"Re: Extending .gitignore","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-08-18T10:00:42Z","receivedAt":"2007-08-18T10:00:42Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Dmitry Kakurin <dmitry.kakurin@gmail.com> writes:\n\n> So I want to be able to say to git: don't track this file, but don't delete it either (even with clean -x).\n> What do you think? Does it make sense? Can it be done right now?\n\nI've said that we would need .precious in addition to .ignore;\nno objection at all, except \"even with clean -x\" part which may\nbe a controversial detail.\n\nCan it be done right now?  Of course not.  That is definitely a\npost 1.5.3 item.\n\nBut the beauty of the distributednes of git is that _you_ can\nstart working on it without disturbing anybody else nor worrying\nabout the stabilization freeze period.\n\nMe, personally I would prefer to see people spending their time\nto find regressions in -rc and fixing them before the release,\nthough...\n"}]}