Skip to content

Commit 474642b

Browse files
anderskgitster
authored andcommitted
git-gui: sort entries in optimized tclIndex
auto_mkindex expands wildcards in directory order, which depends on the underlying filesystem. To improve build reproducibility, sort the list of *.tcl files in the Makefile. The unoptimized loading case was previously fixed in gitgui-0.21.0~14 (git-gui: sort entries in tclIndex, 2015-01-26). Signed-off-by: Anders Kaseorg <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5ab7227 commit 474642b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ $(ALL_MSGFILES): %.msg : %.po
252252
lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS
253253
$(QUIET_INDEX)if echo \
254254
$(foreach p,$(PRELOAD_FILES),source $p\;) \
255-
auto_mkindex lib '*.tcl' \
255+
auto_mkindex lib $(patsubst lib/%,%,$(sort $(ALL_LIBFILES))) \
256256
| $(TCL_PATH) $(QUIET_2DEVNULL); then : ok; \
257257
else \
258258
echo >&2 " * $(TCL_PATH) failed; using unoptimized loading"; \

0 commit comments

Comments
 (0)