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

Re: multiple .gitignore and friends in same workdir possible?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Apr 23, 2010, 14:50 UTC
Message-ID
<4BD1B3AD.50407@drmicha.warpmail.net>
In-Reply-To
<7537.06050240925$1272033186@news.gmane.org>
Konrad Karl venit, vidit, dixit 23.04.2010 16:32:
Show 22 quoted lines
> Hi
> 
> On Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:
>> Heya,
>>
>> On Fri, Apr 23, 2010 at 14:46, Konrad Karl <kk_konrad@gmx.at> wrote:
>>> Is this currently possible or am I missing something? It would ease
>>> my task a lot.
>>
>> I assume that each repo has it's own gitdir, in which case it has it's
>> own config file, so you could just use "git config core.excludesfile
>> .gitignore.one"?
> 
> yes I could (i confess I was not aware of this config var) but
> the fine manual says:
> 
>   In _addition_ to .gitignore (per-directory) and .git/info/exclude, 
>   git looks into this file for patterns of files which are not meant to be tracked.
> 
> 
> so if there was some way to _not_ consider the standard .gitignore &friends
> I would be happy to live with.

If you control the creation of the repos, why don't you simply leave the standard .gitignore empty and use the config as suggested by Sverre?

Michael
Previous: Konrad KarlNext: Konrad Karl
Message 3 of 9 in “Re: multiple .gitignore and friends in same workdir possible?”
  1. Sverre RabbelierApr 23, 2010
  2. Konrad KarlApr 23, 2010
  3. Michael J GruberApr 23, 2010
  4. Konrad KarlApr 23, 2010
  5. Michael J GruberApr 23, 2010
  6. Konrad KarlApr 23, 2010
  7. Konrad KarlApr 23, 2010
  8. Konrad KarlApr 23, 2010
  9. 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.