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

Re: Configurable .gitignore filename?

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Mar 4, 2013, 13:53 UTC
Message-ID
<vpqzjyjp8y0.fsf@grenoble-inp.fr>
In-Reply-To
<CACoicv+Hq=d5fJ7PXYdyvOdWmc3-GbFrsAf2Ze7dnQTzjExXnw@mail.gmail.com>
Jari Pennanen <jari.pennanen@gmail.com> writes:
Show 6 quoted lines
> If project or directory belongs to more than one GIT_DIR then some of
> the GIT_DIR's may need a different .gitignore files, it would be
> useful if one could define it independently, e.g. in GIT_DIR/config:
>
> [core]
> ignorefilename = .gitalternateignore

There is already core.excludesfile, which does not replace the usual .gitignore but comes in addition. The common use is a user-wide ignore file, not a per-directory one.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Jari PennanenNext: Jari Pennanen
Message 2 of 5 in “Configurable .gitignore filename?”
  1. Jari PennanenMar 4, 2013
  2. Matthieu MoyMar 4, 2013
  3. Jari PennanenMar 4, 2013
  4. David AguilarMar 5, 2013
  5. Jari PennanenMar 5, 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.