* Feature Request: existence-only tracking
@ 2013-05-23 17:01 Brett Trotter
2013-05-23 21:00 ` Andreas Krey
0 siblings, 1 reply; 2+ messages in thread
From: Brett Trotter @ 2013-05-23 17:01 UTC (permalink / raw)
To: git
In my work, we have a lot of autogenerated files that need to exist so
a script will replace their contents, but tracking the contents
creates a lot of unnecessary conflicts. I would love to see an option
for a different tracking method that just makes sure a file or
directory exists. This would also obviate the need for adding things
like .empty files in a directory to force the directory to exist.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Feature Request: existence-only tracking
2013-05-23 17:01 Feature Request: existence-only tracking Brett Trotter
@ 2013-05-23 21:00 ` Andreas Krey
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Krey @ 2013-05-23 21:00 UTC (permalink / raw)
To: Brett Trotter; +Cc: git
On Thu, 23 May 2013 12:01:43 +0000, Brett Trotter wrote:
> In my work, we have a lot of autogenerated files that need to exist so
> a script will replace their contents, but tracking the contents
> creates a lot of unnecessary conflicts. I would love to see an option
> for a different tracking method that just makes sure a file or
> directory exists.
You could probably do this via the clean/smugde filters via .gitattributes.
But really this loooks like suboptimal build design. You should change
the generator to not require an (empty/) file beforehand, or change
the build process to create those files before invoking the generator.
(Likewise empty directories that are neeed in the build should be
created by the build, not by the versioning system.)
All IMHO.
Andreas
--
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-23 21:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 17:01 Feature Request: existence-only tracking Brett Trotter
2013-05-23 21:00 ` Andreas Krey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).