Re: how to git-archive ignore some files?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: how to git-archive ignore some files?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:34

René Scharfe [off-list ref] writes:
To really solve this without external tools, git-archive needed to grow
an --exclude option like git-ls-files, though.
Because exclude is never about ignoring what is already tracked, an option
"like" git-ls-files would not help this case, I am afraid.

Re: how to git-archive ignore some files?

From: René Scharfe <hidden>
Date: 2016-06-15 22:44:35

Junio C Hamano schrieb:
René Scharfe [off-list ref] writes:
quoted
To really solve this without external tools, git-archive needed to
grow an --exclude option like git-ls-files, though.
Because exclude is never about ignoring what is already tracked, an
option "like" git-ls-files would not help this case, I am afraid.
True, it should be named differently, e.g. --ignore.

Another idea: would it make sense to have an attribute for that instead
(or in addition to the command line parameter)?  I.e. files marked
export-ignore would not end up in the archive.  I suspect the set of
files to ignore doesn't change from archive to archive one creates.

René
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help