Skip to content

Commit 046e4c1

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8fa2043 commit 046e4c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,10 +2154,12 @@ FIND_SOURCE_FILES = ( \
21542154
'*.[hcS]' \
21552155
'*.sh' \
21562156
':!*[tp][0-9][0-9][0-9][0-9]*' \
2157+
':!contrib' \
21572158
2>/dev/null || \
21582159
$(FIND) . \
21592160
\( -name .git -type d -prune \) \
21602161
-o \( -name '[tp][0-9][0-9][0-9][0-9]*' -prune \) \
2162+
-o \( -name contrib -type d -prune \) \
21612163
-o \( -name build -type d -prune \) \
21622164
-o \( -name 'trash*' -type d -prune \) \
21632165
-o \( -name '*.[hcS]' -type f -print \) \

0 commit comments

Comments
 (0)