summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-12-14 14:32:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-14 17:54:49 (GMT)
commit046e4c1c09aa4fa9865b1fd755aa99d8617465d2 (patch)
tree5df182dd02c28851e09cc0c2adb7a6e7495cb059 /Makefile
parent8fa2043293831402b84c3446efa62640c01c8121 (diff)
downloadgit-046e4c1c09aa4fa9865b1fd755aa99d8617465d2.zip
git-046e4c1c09aa4fa9865b1fd755aa99d8617465d2.tar.gz
git-046e4c1c09aa4fa9865b1fd755aa99d8617465d2.tar.bz2
Makefile: exclude contrib from FIND_SOURCE_FILES
When you're working on the git project, you're unlikely to care about random bits in contrib/ (e.g., you would not want to jump to the copy of xmalloc in the wincred credential helper). Nobody has really complained because there are relatively few C files in contrib. Now that we're matching shell scripts, too, we get quite a few more hits, especially in the obsolete contrib/examples directory. Looking for usage() should turn up the one in git-sh-setup, not in some long-dead version of git-clone. Let's just exclude all of contrib. Any specific projects there which are big enough to want tags can generate them separately. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ef8de4a..7626726 100644
--- a/Makefile
+++ b/Makefile
@@ -2154,10 +2154,12 @@ FIND_SOURCE_FILES = ( \
'*.[hcS]' \
'*.sh' \
':!*[tp][0-9][0-9][0-9][0-9]*' \
+ ':!contrib' \
2>/dev/null || \
$(FIND) . \
\( -name .git -type d -prune \) \
-o \( -name '[tp][0-9][0-9][0-9][0-9]*' -prune \) \
+ -o \( -name contrib -type d -prune \) \
-o \( -name build -type d -prune \) \
-o \( -name 'trash*' -type d -prune \) \
-o \( -name '*.[hcS]' -type f -print \) \