Skip to content

Commit

Permalink
Merge branch "jc/make-dedup-ls-files-output"
Browse files Browse the repository at this point in the history
A "ls-files" that emulates "find" to enumerate files in the working
tree resulted in duplicated Makefile rules that caused the build to
issue an unnecessary warning during a trial build after merge
conflicts are resolved in working tree *.h files but before the
resolved results are added to the index.  This has been corrected.

* jc/make-dedup-ls-files-output:
  Makefile: dedup list of files obtained from ls-files
  • Loading branch information
gitster committed May 13, 2019
2 parents 8293ee0 + 604a646 commit a505f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -817,12 +817,12 @@ VCSSVN_LIB = vcs-svn/lib.a

GENERATED_H += command-list.h

LIB_H := $(shell git ls-files "*.h" ":!t/" ":!Documentation/" 2>/dev/null || \
LIB_H := $(sort $(shell git ls-files "*.h" ":!t/" ":!Documentation/" 2>/dev/null || \
$(FIND) . \
-name .git -prune -o \
-name t -prune -o \
-name Documentation -prune -o \
-name "*.h" -print)
-name "*.h" -print))

LIB_OBJS += abspath.o
LIB_OBJS += advice.o
Expand Down

0 comments on commit a505f62

Please sign in to comment.