summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2016-12-14 09:28:04 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-12-14 09:54:49 -0800
commite6fc85b11f402ababa4b46ec1121a662ce1fce8e (patch)
treec9ea28136dc5766fb2030c699ea0754f2a0ebbce /git.c
parentMakefile: reformat FIND_SOURCE_FILES (diff)
downloadtgif-e6fc85b11f402ababa4b46ec1121a662ce1fce8e.tar.xz
Makefile: exclude test cruft from FIND_SOURCE_FILES
The test directory may contain three types of files that match our patterns: 1. Helper programs in t/helper. 2. Sample data files (e.g., t/t4051/hello.c). 3. Untracked cruft in trash directories and t/perf/build. We want to match (1), but not the other two, as they just clutter up the list. For the ls-files method, we can drop (2) with a negative pathspec. We do not have to care about (3), since ls-files will not list untracked files. For `find`, we can match both cases with `-prune` patterns. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions