Skip to content

Commit a505f62

Browse files
committed
Merge branch 'jc/make-dedup-ls-files-output'
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 8293ee0 + 604a646 commit a505f62

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
@@ -817,12 +817,12 @@ VCSSVN_LIB = vcs-svn/lib.a
817817

818818
GENERATED_H += command-list.h
819819

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

827827
LIB_OBJS += abspath.o
828828
LIB_OBJS += advice.o

0 commit comments

Comments
 (0)