Closed legoktm closed 6 years ago
Didn't know of this feature.
Do you happen to recall when it was added to Git?
It was introduced in https://github.com/git/git/commit/e4aee10a2eaf0937d86d046f85ee569a75cae9ac (11 years ago).
Perhaps the simplest fix is to check for "-export-ignore"
before "export-ignore"
.
check-attr
is a better alternative, but requires more work.
I tried to just implement checking for -export-ignore but it ended up being more complicated than I expected, so I went ahead with the check-attr
implementation and then I realized I could delete a ton of code.
I like it 👍
Hi, we're looking to use this to replace our homegrown release script for MediaWiki, and it nearly has all the functionality we need. The one thing I noticed is that it doesn't appear to support unsetting the
export-ignore
attribute (as documented in https://www.git-scm.com/docs/gitattributes).We want to ignore all dot files except for
.htaccess
, so I have the following in our .gitattributes:A standard
git archive ...
will include the .htaccess files, but it doesn't include the submodules that we want.Would it be possible to have git-archive-all support unsetting the export-ignore property?
I wonder whether it would make more sense in the long term to rely on git's attribute parsing, e.g.: