git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Feature Request: existence-only tracking

From
Andreas Krey <a.krey@gmx.de>
Date
May 23, 2013, 21:00 UTC
Message-ID
<20130523210030.GA23377@inner.h.apk.li>
In-Reply-To
<CADo3Y7QDuDLScdzcsS60d0fwQBT+=Va1s+v3OsSw5CBcEDbUFw@mail.gmail.com>
On Thu, 23 May 2013 12:01:43 +0000, Brett Trotter wrote:
Show 5 quoted lines
> 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
Previous: Brett Trotter
Message 2 of 2 in “Feature Request: existence-only tracking”
  1. Brett TrotterMay 23, 2013
  2. Andreas KreyMay 23, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.