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>

Jeff King committed Dec 14, 2016 at 09:32 UTC 046e4c1c09aa4fa9865b1fd755aa99d8617465d2
1 file changed +2
Makefile
+2
@@ -2154,10 +2154,12 @@ FIND_SOURCE_FILES = ( \
2154 '*.[hcS]' \
2155 '*.sh' \
2156 ':!*[tp][0-9][0-9][0-9][0-9]*' \
2157 + ':!contrib' \
2158 2>/dev/null || \
2159 $(FIND) . \
2160 \( -name .git -type d -prune \) \
2161 -o \( -name '[tp][0-9][0-9][0-9][0-9]*' -prune \) \
2162 + -o \( -name contrib -type d -prune \) \
2163 -o \( -name build -type d -prune \) \
2164 -o \( -name 'trash*' -type d -prune \) \
2165 -o \( -name '*.[hcS]' -type f -print \) \