Re: refining .gitignores

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bruce Stephens
Date: Thursday, November 15, 2007 - 2:13 pm

Linus Torvalds <torvalds@linux-foundation.org> writes:


OK.  I think I sort of understood that, but it's nice to have it
clearly stated.

I'm not worried so much about files that already exist.  I'm worried
that we may in the future create files that we want to store in git
and which are ignored.  If we do that there's a chance we'll miss them
(because "git gui", "git status", etc., won't bring attention to
them).

So it seemed valuable to try to make the .gitignore patterns precise:
so that they ignore all the generated files that our builds produce,
while not matching any files that git knows about.

That certainly wouldn't guarantee that new files wouldn't be caught by
the patterns, but it ought to lower the probability of this, since
there's a decent chance that such files will either be not touched by
the patterns (because they're *.java or something), or they'll fit
into one of the already handled exceptions (Doxyfile.local is one:
most *.local files are build products, but Doxyfile.local aren't).

I guess if you're starting off with some project in git then this
isn't such an issue: you evolve the patterns and the build process and
so on in parallel.  So maybe there's not such a demand for finding
this information, and those of us who do want to do it are best using
the "git add" loop approach?
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
refining .gitignores, Bruce Stephens, (Wed Nov 14, 3:36 pm)
Re: refining .gitignores, Alex Riesen, (Wed Nov 14, 4:02 pm)
Re: refining .gitignores, Bruce Stephens, (Thu Nov 15, 4:39 am)
Re: refining .gitignores, Alex Riesen, (Thu Nov 15, 12:26 pm)
Re: refining .gitignores, Bruce Stephens, (Thu Nov 15, 1:28 pm)
Re: refining .gitignores, Linus Torvalds, (Thu Nov 15, 1:40 pm)
Re: refining .gitignores, Bruce Stephens, (Thu Nov 15, 2:13 pm)
Re: refining .gitignores, Alex Riesen, (Thu Nov 15, 2:17 pm)
Re: refining .gitignores, Linus Torvalds, (Thu Nov 15, 2:56 pm)