Skip to content

Commit ead8199

Browse files
committed
Merge branch 'jc/make-dedup-ls-files-output' into jch
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
2 parents 953d566 + 604a646 commit ead8199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,12 +819,12 @@ VCSSVN_LIB = vcs-svn/lib.a
819819

820820
GENERATED_H += command-list.h
821821

822-
LIB_H := $(shell git ls-files '*.h' ':!t/' ':!Documentation/' 2>/dev/null || \
822+
LIB_H := $(sort $(shell git ls-files '*.h' ':!t/' ':!Documentation/' 2>/dev/null || \
823823
$(FIND) . \
824824
-name .git -prune -o \
825825
-name t -prune -o \
826826
-name Documentation -prune -o \
827-
-name '*.h' -print)
827+
-name '*.h' -print))
828828

829829
LIB_OBJS += abspath.o
830830
LIB_OBJS += advice.o

0 commit comments

Comments
 (0)