]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
dir: allow exclusions from blob in addition to file
authorJeff Hostetler <jeffhost@microsoft.com>
Tue, 21 Nov 2017 20:58:47 +0000 (20:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Nov 2017 05:11:56 +0000 (14:11 +0900)
commit578d81d0c445f714dce46d5f4e3f599ac3a94c75
treed8dbfbc67045d979e728c24df55b577fef77dc99
parentcb5918aa0d50f50e83787f65c2ddc3dcb10159fe
dir: allow exclusions from blob in addition to file

Refactor add_excludes() to separate the reading of the
exclude file into a buffer and the parsing of the buffer
into exclude_list items.

Add add_excludes_from_blob_to_list() to allow an exclude
file be specified with an OID without assuming a local
worktree or index exists.

Refactor read_skip_worktree_file_from_index() and add
do_read_blob() to eliminate duplication of preliminary
processing of blob contents.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
dir.h