git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: The .gitignore rules can't be made to cross submodule boundaries
@ 2017-05-22 18:33 Ævar Arnfjörð Bjarmason
  2017-05-23  9:17 ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2017-05-22 18:33 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Brandon Williams, Stefan Beller

When I was adding the sha1collisiondetection submodule to git.git I
noticed that building git would dirty the submodule.

This is because our own Makefile adds .depend/ directories. I hacked
around it by just getting the upstream project accept carrying an
ignore rule for that around:
https://github.com/cr-marcstevens/sha1collisiondetection/commit/e8397b26

A workaround for this is to have the Makefile add such a rule to
.git/modules/sha1collisiondetection/info/exclude, but that's less
convenient than being able to distribute it as a normal .gitignore
rule.

The submodule.<name>.ignore config provides an overly big hammer to
solve this, it would be better if we had something like
submodule.<name>.gitignore=<path>. Then we could have e.g.
.gitignore.sha1collisiondetection which would be added to whatever
rules the repo's own .gitignore provides.

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

end of thread, other threads:[~2017-05-23 17:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-22 18:33 BUG: The .gitignore rules can't be made to cross submodule boundaries Ævar Arnfjörð Bjarmason
2017-05-23  9:17 ` Johannes Schindelin
2017-05-23  9:55   ` Ævar Arnfjörð Bjarmason
2017-05-23 17:51     ` Stefan Beller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).