public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* Question: supporting multiple named ignore files (in addition to .gitignore)
@ 2026-01-28  0:42 ZH L
  2026-01-28  2:14 ` brian m. carlson
  0 siblings, 1 reply; 3+ messages in thread
From: ZH L @ 2026-01-28  0:42 UTC (permalink / raw)
  To: git

Today Git only loads ignore rules from .gitignore (plus global and
info/exclude),
which works well but can become hard to maintain in large repositories where
editor, build, and miscellaneous rules are mixed into a single file.

Would the Git project consider supporting additional named ignore files
(for example editor.gitignore, build.gitignore) that are automatically merged
with .gitignore, with a well-defined and documented precedence order?

This would allow semantic separation of ignore rules while keeping full backward
compatibility, and could reduce the need for external scripts that currently
exist solely to generate .gitignore.

I’m mainly interested in whether this idea has been considered before, and
whether the maintainers see fundamental design objections to it.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-28 10:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28  0:42 Question: supporting multiple named ignore files (in addition to .gitignore) ZH L
2026-01-28  2:14 ` brian m. carlson
2026-01-28 10:13   ` ZH L

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox