{"thread":{"id":"33912","subject":"Feature Request: existence-only tracking","startedAt":"2013-05-23T17:01:43Z","lastAt":"2013-05-23T21:00:30Z","messageCount":2,"participants":["Brett Trotter","Andreas Krey"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"218283","messageId":"CADo3Y7QDuDLScdzcsS60d0fwQBT+=Va1s+v3OsSw5CBcEDbUFw@mail.gmail.com","threadId":"33912","inReplyTo":null,"subject":"Feature Request: existence-only tracking","fromName":"Brett Trotter","fromEmail":"btrotter1389@gmail.com","sentAt":"2013-05-23T17:01:43Z","receivedAt":"2013-05-23T17:01:43Z","isPatch":false,"sender":{"key":"btrotter1389@gmail.com","avatar":null},"body":"In my work, we have a lot of autogenerated files that need to exist so\na script will replace their contents, but tracking the contents\ncreates a lot of unnecessary conflicts. I would love to see an option\nfor a different tracking method that just makes sure a file or\ndirectory exists. This would also obviate the need for adding things\nlike .empty files in a directory to force the directory to exist.\n"},{"id":"218306","messageId":"20130523210030.GA23377@inner.h.apk.li","threadId":"33912","inReplyTo":"CADo3Y7QDuDLScdzcsS60d0fwQBT+=Va1s+v3OsSw5CBcEDbUFw@mail.gmail.com","subject":"Re: Feature Request: existence-only tracking","fromName":"Andreas Krey","fromEmail":"a.krey@gmx.de","sentAt":"2013-05-23T21:00:30Z","receivedAt":"2013-05-23T21:00:30Z","isPatch":false,"sender":{"key":"a.krey@gmx.de","avatar":"https://avatars.githubusercontent.com/u/37810?v=4"},"body":"On Thu, 23 May 2013 12:01:43 +0000, Brett Trotter wrote:\n> In my work, we have a lot of autogenerated files that need to exist so\n> a script will replace their contents, but tracking the contents\n> creates a lot of unnecessary conflicts. I would love to see an option\n> for a different tracking method that just makes sure a file or\n> directory exists.\n\nYou could probably do this via the clean/smugde filters via .gitattributes.\n\nBut really this loooks like suboptimal build design. You should change\nthe generator to not require an (empty/) file beforehand, or change\nthe build process to create those files before invoking the generator.\n(Likewise empty directories that are neeed in the build should be\ncreated by the build, not by the versioning system.)\n\nAll IMHO.\n\nAndreas\n\n-- \n\"Totally trivial. Famous last words.\"\nFrom: Linus Torvalds <torvalds@*.org>\nDate: Fri, 22 Jan 2010 07:29:21 -0800\n"}]}