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

multiple .gitignore and friends in same workdir possible?

From
KKKonrad Karl <kk_konrad@gmx.at>
Date
Apr 23, 2010, 12:46 UTC
Message-ID
<20100423124640.GA3657localhost>
Hi,

while trying to move our Windows people from VSS to git i am facing the following problem:

I want to have two (or three) git repos wich all share the same working directory (this is manageable by environment variables), one for the real source files and the other for 3'rd party binaries (*.dll, *.lib + perhaps include files for those) and perhaps a third one for debugging symbol files (*.pdb and such)

In order to have .gitignore (and .gitattributes) files versioned and also distributed on git clone they need to be inside the work dir. Unfortunately the sources and binaries are co-located inside the work dir subfolders - for historic reasons.

So i would like to have a mechanism to be able to specify different filenames for .gitignore and .gitattributes without having to recompile git, perhaps by an environment variable. (e.g by a suffix like .gitignore.src .gitignore.bin etc)

Is this currently possible or am I missing something? It would ease my task a lot.

Greetings, Konrad

Message 1 of 1 in “multiple .gitignore and friends in same workdir possible?”
  1. Konrad KarlApr 23, 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.