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

Re: Unmodified submodules shows up as dirty with 1.6.6.443.gd7346

From
Jens Lehmann <jens.lehmann@web.de>
Date
Jan 18, 2010, 20:50 UTC
Message-ID
<4B54C97B.1050008@web.de>
In-Reply-To
<7vr5pnqqem.fsf@alter.siamese.dyndns.org>
Am 18.01.2010 18:22, schrieb Junio C Hamano:
Show 5 quoted lines
> I am suspecting that your "these files ... are named differently on
> different systems" may fall into the same category.  Your build may not
> produce "frotz.linux" when compiled on a FreeBSD box (and "frotz.fbsd" on
> a Linux box), but would it hurt more than it helps to list them in the
> same .gitignore to cover both?

If you keep source directories separate from directories for compiler output you can easily simplify your .gitignore by negating it. So instead of putting a line into the .gitignore for every file type you do /not/ want, exclude everything in the build directory and add exceptions for the files you /do/ want to track.

Then a .gitignore could look like this for building with VC6, VC8 and Makefile based build systems:

path/to/build/directory/* !*.dsw !*.dsp !*.sln !*.vcproj !Makefile

Previous: Junio C HamanoNext: Johannes Sixt
Message 7 of 11 in “Unmodified submodules shows up as dirty with 1.6.6.443.gd7346”
  1. Gustaf HendebyJan 18, 2010
  2. Jacob HelwigJan 18, 2010
  3. Gustaf HendebyJan 18, 2010
  4. Jacob HelwigJan 18, 2010
  5. Gustaf HendebyJan 18, 2010
  6. Junio C HamanoJan 18, 2010
  7. Jens LehmannJan 18, 2010
  8. Johannes SixtJan 19, 2010
  9. Gustaf HendebyJan 19, 2010
  10. Jacob HelwigJan 19, 2010
  11. Junio C HamanoJan 19, 2010

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.