Skip to content

Commit 805d9ea

Browse files
Denton-Lgitster
authored andcommitted
Makefile: ASCII-sort += lists
There are many += lists in the Makefile and, over time, they have gotten slightly out of ASCII order. Sort all += lists to bring them back in order. ASCII sorting was chosen over strict alphabetical order even though, if we omit file prefixes, the lists aren't sorted in strictly alphabetical order (e.g. archive.o comes after archive-zip.o instead of before archive-tar.o). This is intentional because the purpose of maintaining the sorted list is to ensure line insertions are deterministic. By using ASCII ordering, it is more easily mechanically reproducible in the future, such as by using :sort in Vim. This patch is best viewed with `--color-moved`. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 274b9cc commit 805d9ea

File tree

1 file changed

+39
-38
lines changed

1 file changed

+39
-38
lines changed

Makefile

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -604,21 +604,21 @@ unexport CDPATH
604604
SCRIPT_SH += git-bisect.sh
605605
SCRIPT_SH += git-difftool--helper.sh
606606
SCRIPT_SH += git-filter-branch.sh
607+
SCRIPT_SH += git-legacy-stash.sh
607608
SCRIPT_SH += git-merge-octopus.sh
608609
SCRIPT_SH += git-merge-one-file.sh
609610
SCRIPT_SH += git-merge-resolve.sh
610611
SCRIPT_SH += git-mergetool.sh
611612
SCRIPT_SH += git-quiltimport.sh
612-
SCRIPT_SH += git-legacy-stash.sh
613613
SCRIPT_SH += git-request-pull.sh
614614
SCRIPT_SH += git-submodule.sh
615615
SCRIPT_SH += git-web--browse.sh
616616

617617
SCRIPT_LIB += git-mergetool--lib
618618
SCRIPT_LIB += git-parse-remote
619619
SCRIPT_LIB += git-rebase--preserve-merges
620-
SCRIPT_LIB += git-sh-setup
621620
SCRIPT_LIB += git-sh-i18n
621+
SCRIPT_LIB += git-sh-setup
622622

623623
SCRIPT_PERL += git-add--interactive.perl
624624
SCRIPT_PERL += git-archimport.perl
@@ -686,9 +686,9 @@ PROGRAM_OBJS += daemon.o
686686
PROGRAM_OBJS += fast-import.o
687687
PROGRAM_OBJS += http-backend.o
688688
PROGRAM_OBJS += imap-send.o
689+
PROGRAM_OBJS += remote-testsvn.o
689690
PROGRAM_OBJS += sh-i18n--envsubst.o
690691
PROGRAM_OBJS += shell.o
691-
PROGRAM_OBJS += remote-testsvn.o
692692

693693
# Binary suffix, set to .exe for Windows builds
694694
X =
@@ -709,9 +709,9 @@ TEST_BUILTINS_OBJS += test-dump-untracked-cache.o
709709
TEST_BUILTINS_OBJS += test-example-decorate.o
710710
TEST_BUILTINS_OBJS += test-genrandom.o
711711
TEST_BUILTINS_OBJS += test-genzeros.o
712+
TEST_BUILTINS_OBJS += test-hash-speed.o
712713
TEST_BUILTINS_OBJS += test-hash.o
713714
TEST_BUILTINS_OBJS += test-hashmap.o
714-
TEST_BUILTINS_OBJS += test-hash-speed.o
715715
TEST_BUILTINS_OBJS += test-index-version.o
716716
TEST_BUILTINS_OBJS += test-json-writer.o
717717
TEST_BUILTINS_OBJS += test-lazy-init-name-hash.o
@@ -737,8 +737,8 @@ TEST_BUILTINS_OBJS += test-revision-walking.o
737737
TEST_BUILTINS_OBJS += test-run-command.o
738738
TEST_BUILTINS_OBJS += test-scrap-cache-tree.o
739739
TEST_BUILTINS_OBJS += test-serve-v2.o
740-
TEST_BUILTINS_OBJS += test-sha1.o
741740
TEST_BUILTINS_OBJS += test-sha1-array.o
741+
TEST_BUILTINS_OBJS += test-sha1.o
742742
TEST_BUILTINS_OBJS += test-sha256.o
743743
TEST_BUILTINS_OBJS += test-sigchain.o
744744
TEST_BUILTINS_OBJS += test-strcmp-offset.o
@@ -748,10 +748,10 @@ TEST_BUILTINS_OBJS += test-submodule-nested-repo-config.o
748748
TEST_BUILTINS_OBJS += test-subprocess.o
749749
TEST_BUILTINS_OBJS += test-trace2.o
750750
TEST_BUILTINS_OBJS += test-urlmatch-normalization.o
751-
TEST_BUILTINS_OBJS += test-xml-encode.o
752751
TEST_BUILTINS_OBJS += test-wildmatch.o
753752
TEST_BUILTINS_OBJS += test-windows-named-pipe.o
754753
TEST_BUILTINS_OBJS += test-write-cache.o
754+
TEST_BUILTINS_OBJS += test-xml-encode.o
755755

756756
# Do not add more tests here unless they have extra dependencies. Add
757757
# them in TEST_BUILTINS_OBJS above.
@@ -788,10 +788,10 @@ OTHER_PROGRAMS = git$X
788788

789789
# what test wrappers are needed and 'install' will install, in bindir
790790
BINDIR_PROGRAMS_NEED_X += git
791-
BINDIR_PROGRAMS_NEED_X += git-upload-pack
792791
BINDIR_PROGRAMS_NEED_X += git-receive-pack
793-
BINDIR_PROGRAMS_NEED_X += git-upload-archive
794792
BINDIR_PROGRAMS_NEED_X += git-shell
793+
BINDIR_PROGRAMS_NEED_X += git-upload-archive
794+
BINDIR_PROGRAMS_NEED_X += git-upload-pack
795795

796796
BINDIR_PROGRAMS_NO_X += git-cvsserver
797797

@@ -831,9 +831,9 @@ LIB_OBJS += advice.o
831831
LIB_OBJS += alias.o
832832
LIB_OBJS += alloc.o
833833
LIB_OBJS += apply.o
834-
LIB_OBJS += archive.o
835834
LIB_OBJS += archive-tar.o
836835
LIB_OBJS += archive-zip.o
836+
LIB_OBJS += archive.o
837837
LIB_OBJS += argv-array.o
838838
LIB_OBJS += attr.o
839839
LIB_OBJS += base85.o
@@ -849,9 +849,9 @@ LIB_OBJS += checkout.o
849849
LIB_OBJS += color.o
850850
LIB_OBJS += column.o
851851
LIB_OBJS += combine-diff.o
852-
LIB_OBJS += commit.o
853852
LIB_OBJS += commit-graph.o
854853
LIB_OBJS += commit-reach.o
854+
LIB_OBJS += commit.o
855855
LIB_OBJS += compat/obstack.o
856856
LIB_OBJS += compat/terminal.o
857857
LIB_OBJS += config.o
@@ -865,17 +865,17 @@ LIB_OBJS += ctype.o
865865
LIB_OBJS += date.o
866866
LIB_OBJS += decorate.o
867867
LIB_OBJS += delta-islands.o
868+
LIB_OBJS += diff-delta.o
869+
LIB_OBJS += diff-lib.o
870+
LIB_OBJS += diff-no-index.o
871+
LIB_OBJS += diff.o
868872
LIB_OBJS += diffcore-break.o
869873
LIB_OBJS += diffcore-delta.o
870874
LIB_OBJS += diffcore-order.o
871875
LIB_OBJS += diffcore-pickaxe.o
872876
LIB_OBJS += diffcore-rename.o
873-
LIB_OBJS += diff-delta.o
874-
LIB_OBJS += diff-lib.o
875-
LIB_OBJS += diff-no-index.o
876-
LIB_OBJS += diff.o
877-
LIB_OBJS += dir.o
878877
LIB_OBJS += dir-iterator.o
878+
LIB_OBJS += dir.o
879879
LIB_OBJS += editor.o
880880
LIB_OBJS += entry.o
881881
LIB_OBJS += environment.o
@@ -893,7 +893,6 @@ LIB_OBJS += gpg-interface.o
893893
LIB_OBJS += graph.o
894894
LIB_OBJS += grep.o
895895
LIB_OBJS += hashmap.o
896-
LIB_OBJS += linear-assignment.o
897896
LIB_OBJS += help.o
898897
LIB_OBJS += hex.o
899898
LIB_OBJS += ident.o
@@ -903,9 +902,10 @@ LIB_OBJS += kwset.o
903902
LIB_OBJS += levenshtein.o
904903
LIB_OBJS += line-log.o
905904
LIB_OBJS += line-range.o
906-
LIB_OBJS += list-objects.o
907-
LIB_OBJS += list-objects-filter.o
905+
LIB_OBJS += linear-assignment.o
908906
LIB_OBJS += list-objects-filter-options.o
907+
LIB_OBJS += list-objects-filter.o
908+
LIB_OBJS += list-objects.o
909909
LIB_OBJS += ll-merge.o
910910
LIB_OBJS += lockfile.o
911911
LIB_OBJS += log-tree.o
@@ -914,31 +914,31 @@ LIB_OBJS += mailinfo.o
914914
LIB_OBJS += mailmap.o
915915
LIB_OBJS += match-trees.o
916916
LIB_OBJS += mem-pool.o
917-
LIB_OBJS += merge.o
918917
LIB_OBJS += merge-blobs.o
919918
LIB_OBJS += merge-recursive.o
919+
LIB_OBJS += merge.o
920920
LIB_OBJS += mergesort.o
921921
LIB_OBJS += midx.o
922922
LIB_OBJS += name-hash.o
923923
LIB_OBJS += negotiator/default.o
924924
LIB_OBJS += negotiator/skipping.o
925-
LIB_OBJS += notes.o
926925
LIB_OBJS += notes-cache.o
927926
LIB_OBJS += notes-merge.o
928927
LIB_OBJS += notes-utils.o
928+
LIB_OBJS += notes.o
929929
LIB_OBJS += object.o
930930
LIB_OBJS += oidmap.o
931931
LIB_OBJS += oidset.o
932-
LIB_OBJS += packfile.o
933-
LIB_OBJS += pack-bitmap.o
934932
LIB_OBJS += pack-bitmap-write.o
933+
LIB_OBJS += pack-bitmap.o
935934
LIB_OBJS += pack-check.o
936935
LIB_OBJS += pack-objects.o
937936
LIB_OBJS += pack-revindex.o
938937
LIB_OBJS += pack-write.o
938+
LIB_OBJS += packfile.o
939939
LIB_OBJS += pager.o
940-
LIB_OBJS += parse-options.o
941940
LIB_OBJS += parse-options-cb.o
941+
LIB_OBJS += parse-options.o
942942
LIB_OBJS += patch-delta.o
943943
LIB_OBJS += patch-ids.o
944944
LIB_OBJS += path.o
@@ -955,16 +955,16 @@ LIB_OBJS += quote.o
955955
LIB_OBJS += range-diff.o
956956
LIB_OBJS += reachable.o
957957
LIB_OBJS += read-cache.o
958-
LIB_OBJS += rebase.o
959958
LIB_OBJS += rebase-interactive.o
959+
LIB_OBJS += rebase.o
960+
LIB_OBJS += ref-filter.o
960961
LIB_OBJS += reflog-walk.o
961962
LIB_OBJS += refs.o
962963
LIB_OBJS += refs/files-backend.o
963964
LIB_OBJS += refs/iterator.o
964965
LIB_OBJS += refs/packed-backend.o
965966
LIB_OBJS += refs/ref-cache.o
966967
LIB_OBJS += refspec.o
967-
LIB_OBJS += ref-filter.o
968968
LIB_OBJS += remote.o
969969
LIB_OBJS += replace-object.o
970970
LIB_OBJS += repo-settings.o
@@ -979,8 +979,8 @@ LIB_OBJS += serve.o
979979
LIB_OBJS += server-info.o
980980
LIB_OBJS += setup.o
981981
LIB_OBJS += sha1-array.o
982-
LIB_OBJS += sha1-lookup.o
983982
LIB_OBJS += sha1-file.o
983+
LIB_OBJS += sha1-lookup.o
984984
LIB_OBJS += sha1-name.o
985985
LIB_OBJS += shallow.o
986986
LIB_OBJS += sideband.o
@@ -990,9 +990,9 @@ LIB_OBJS += stable-qsort.o
990990
LIB_OBJS += strbuf.o
991991
LIB_OBJS += streaming.o
992992
LIB_OBJS += string-list.o
993-
LIB_OBJS += submodule.o
994-
LIB_OBJS += submodule-config.o
995993
LIB_OBJS += sub-process.o
994+
LIB_OBJS += submodule-config.o
995+
LIB_OBJS += submodule.o
996996
LIB_OBJS += symlinks.o
997997
LIB_OBJS += tag.o
998998
LIB_OBJS += tempfile.o
@@ -1011,11 +1011,11 @@ LIB_OBJS += trace2/tr2_tgt_normal.o
10111011
LIB_OBJS += trace2/tr2_tgt_perf.o
10121012
LIB_OBJS += trace2/tr2_tls.o
10131013
LIB_OBJS += trailer.o
1014-
LIB_OBJS += transport.o
10151014
LIB_OBJS += transport-helper.o
1015+
LIB_OBJS += transport.o
10161016
LIB_OBJS += tree-diff.o
1017-
LIB_OBJS += tree.o
10181017
LIB_OBJS += tree-walk.o
1018+
LIB_OBJS += tree.o
10191019
LIB_OBJS += unpack-trees.o
10201020
LIB_OBJS += upload-pack.o
10211021
LIB_OBJS += url.o
@@ -1055,9 +1055,9 @@ BUILTIN_OBJS += builtin/checkout.o
10551055
BUILTIN_OBJS += builtin/clean.o
10561056
BUILTIN_OBJS += builtin/clone.o
10571057
BUILTIN_OBJS += builtin/column.o
1058+
BUILTIN_OBJS += builtin/commit-graph.o
10581059
BUILTIN_OBJS += builtin/commit-tree.o
10591060
BUILTIN_OBJS += builtin/commit.o
1060-
BUILTIN_OBJS += builtin/commit-graph.o
10611061
BUILTIN_OBJS += builtin/config.o
10621062
BUILTIN_OBJS += builtin/count-objects.o
10631063
BUILTIN_OBJS += builtin/credential.o
@@ -1088,13 +1088,13 @@ BUILTIN_OBJS += builtin/ls-remote.o
10881088
BUILTIN_OBJS += builtin/ls-tree.o
10891089
BUILTIN_OBJS += builtin/mailinfo.o
10901090
BUILTIN_OBJS += builtin/mailsplit.o
1091-
BUILTIN_OBJS += builtin/merge.o
10921091
BUILTIN_OBJS += builtin/merge-base.o
10931092
BUILTIN_OBJS += builtin/merge-file.o
10941093
BUILTIN_OBJS += builtin/merge-index.o
10951094
BUILTIN_OBJS += builtin/merge-ours.o
10961095
BUILTIN_OBJS += builtin/merge-recursive.o
10971096
BUILTIN_OBJS += builtin/merge-tree.o
1097+
BUILTIN_OBJS += builtin/merge.o
10981098
BUILTIN_OBJS += builtin/mktag.o
10991099
BUILTIN_OBJS += builtin/mktree.o
11001100
BUILTIN_OBJS += builtin/multi-pack-index.o
@@ -1114,9 +1114,9 @@ BUILTIN_OBJS += builtin/read-tree.o
11141114
BUILTIN_OBJS += builtin/rebase.o
11151115
BUILTIN_OBJS += builtin/receive-pack.o
11161116
BUILTIN_OBJS += builtin/reflog.o
1117-
BUILTIN_OBJS += builtin/remote.o
11181117
BUILTIN_OBJS += builtin/remote-ext.o
11191118
BUILTIN_OBJS += builtin/remote-fd.o
1119+
BUILTIN_OBJS += builtin/remote.o
11201120
BUILTIN_OBJS += builtin/repack.o
11211121
BUILTIN_OBJS += builtin/replace.o
11221122
BUILTIN_OBJS += builtin/rerere.o
@@ -2335,16 +2335,16 @@ reconfigure config.mak.autogen: config.status
23352335
endif
23362336

23372337
XDIFF_OBJS += xdiff/xdiffi.o
2338-
XDIFF_OBJS += xdiff/xprepare.o
2339-
XDIFF_OBJS += xdiff/xutils.o
23402338
XDIFF_OBJS += xdiff/xemit.o
2339+
XDIFF_OBJS += xdiff/xhistogram.o
23412340
XDIFF_OBJS += xdiff/xmerge.o
23422341
XDIFF_OBJS += xdiff/xpatience.o
2343-
XDIFF_OBJS += xdiff/xhistogram.o
2342+
XDIFF_OBJS += xdiff/xprepare.o
2343+
XDIFF_OBJS += xdiff/xutils.o
23442344

2345+
VCSSVN_OBJS += vcs-svn/fast_export.o
23452346
VCSSVN_OBJS += vcs-svn/line_buffer.o
23462347
VCSSVN_OBJS += vcs-svn/sliding_window.o
2347-
VCSSVN_OBJS += vcs-svn/fast_export.o
23482348
VCSSVN_OBJS += vcs-svn/svndiff.o
23492349
VCSSVN_OBJS += vcs-svn/svndump.o
23502350

@@ -3152,9 +3152,10 @@ endif
31523152
#
31533153
ALL_COMMANDS = $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS)
31543154
ALL_COMMANDS += git
3155+
ALL_COMMANDS += git-citool
3156+
ALL_COMMANDS += git-gui
31553157
ALL_COMMANDS += gitk
31563158
ALL_COMMANDS += gitweb
3157-
ALL_COMMANDS += git-gui git-citool
31583159

31593160
.PHONY: check-docs
31603161
check-docs::

0 commit comments

Comments
 (0)