diff options
author | René Scharfe <l.s.r@web.de> | 2017-08-19 07:32:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-19 00:40:25 -0700 |
commit | 5ff247ac0cc9b2d09c8c24bd0c8df12eed94aebc (patch) | |
tree | 3491f059ec09b1fedd756f2f76ba7c700574500e /Documentation/technical/api-oid-array.txt | |
parent | archive: factor out helper functions for handling attributes (diff) | |
download | tgif-5ff247ac0cc9b2d09c8c24bd0c8df12eed94aebc.tar.xz |
archive: don't queue excluded directories
Reject directories with the attribute export-ignore already while
queuing them. This prevents read_tree_recursive() from descending into
them and this avoids write_archive_entry() rejecting them later on,
which queue_or_write_archive_entry() is not prepared for.
Borrow the existing strbuf to build the full path to avoid string
copies and extra allocations; just make sure we restore the original
value before moving on.
Keep checking any other attributes in write_archive_entry() as before,
but avoid checking them twice.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-oid-array.txt')
0 files changed, 0 insertions, 0 deletions