git organize: record file placement and apply it
Subsystems (3)
RFC PATCH 10/14 diff: gather the diff sources under diff/
In reply to Michael MontalboMove the 16 diff C sources and 7 headers into diff/ as renames. Repoint every reference to their old paths to the new ones: the #include lines across the tree, the Makefile and meson.build build entries.
--- .gitorganize | 46 +++++++++---------- Makefile | 32 ++++++------- add-interactive.c | 2 +- add-patch.c | 2 +- apply.c | 4 +- archive-zip.c | 4 +- bisect.c | 2 +- blame.c | 4 +- blame.h | 2 +- builtin/add.c | 2 +- builtin/am.c | 2 +- builtin/blame.c | 4 +- builtin/cat-file.c | 4 +- builtin/checkout.c | 4 +- builtin/commit.c | 2 +- builtin/describe.c | 2 +- builtin/diff-files.c | 4 +- builtin/diff-index.c | 4 +- builtin/diff-pairs.c | 4 +- builtin/diff-tree.c | 2 +- builtin/diff.c | 6 +-- builtin/fast-export.c | 4 +- builtin/last-modified.c | 4 +- builtin/log.c | 12 ++--- builtin/merge-file.c | 4 +- builtin/merge-ours.c | 2 +- builtin/merge-tree.c | 2 +- builtin/merge.c | 6 +-- builtin/pack-objects.c | 2 +- builtin/patch-id.c | 2 +- builtin/prune.c | 2 +- builtin/range-diff.c | 2 +- builtin/rebase.c | 2 +- builtin/rerere.c | 2 +- builtin/reset.c | 4 +- builtin/rev-list.c | 2 +- builtin/rev-parse.c | 2 +- builtin/revert.c | 2 +- builtin/shortlog.c | 2 +- builtin/stash.c | 2 +- builtin/submodule--helper.c | 4 +- builtin/tag.c | 2 +- bundle.c | 2 +- combine-diff.c => diff/combine-diff.c | 8 ++-- diff-lib.c => diff/diff-lib.c | 4 +- diff-merges.c => diff/diff-merges.c | 2 +- diff-merges.h => diff/diff-merges.h | 0 diff-no-index.c => diff/diff-no-index.c | 4 +- diff.c => diff/diff.c | 8 ++-- diff.h => diff/diff.h | 0 diffcore-break.c => diff/diffcore-break.c | 2 +- diffcore-delta.c => diff/diffcore-delta.c | 2 +- diffcore-order.c => diff/diffcore-order.c | 4 +- diffcore-pickaxe.c => diff/diffcore-pickaxe.c | 6 +-- diffcore-rename.c => diff/diffcore-rename.c | 4 +- diffcore-rotate.c => diff/diffcore-rotate.c | 4 +- diffcore.h => diff/diffcore.h | 0 patch-ids.c => diff/patch-ids.c | 4 +- patch-ids.h => diff/patch-ids.h | 2 +- range-diff.c => diff/range-diff.c | 8 ++-- range-diff.h => diff/range-diff.h | 2 +- tree-diff.c => diff/tree-diff.c | 4 +- userdiff.c => diff/userdiff.c | 2 +- userdiff.h => diff/userdiff.h | 0 xdiff-interface.c => diff/xdiff-interface.c | 2 +- xdiff-interface.h => diff/xdiff-interface.h | 0 fmt-merge-msg.c | 4 +- graph.h | 2 +- grep.c | 8 ++-- grep.h | 2 +- http-push.c | 2 +- line-log.c | 6 +-- line-log.h | 2 +- line-range.c | 4 +- list-objects-filter.c | 2 +- list-objects.c | 2 +- log-tree.c | 6 +-- merge-ll.c | 2 +- merge-ort.c | 6 +-- meson.build | 32 ++++++------- notes-merge.c | 6 +-- odb/commit.c | 2 +- pack/bloom.c | 4 +- pack/delta-islands.c | 2 +- pack/pack-bitmap-write.c | 2 +- pack/pack-bitmap.c | 2 +- pack/reachable.c | 2 +- pretty.c | 2 +- read-cache.c | 4 +- refs/reflog-walk.c | 2 +- remote.c | 2 +- rerere.c | 2 +- revision.c | 6 +-- revision.h | 2 +- sequencer.c | 2 +- shallow.c | 2 +- submodule.c | 4 +- t/helper/test-revision-walking.c | 2 +- t/helper/test-userdiff.c | 2 +- upload-pack.c | 2 +- wt-status.c | 4 +- 101 files changed, 208 insertions(+), 208 deletions(-) rename combine-diff.c => diff/combine-diff.c (99%) rename diff-lib.c => diff/diff-lib.c (99%) rename diff-merges.c => diff/diff-merges.c (99%) rename diff-merges.h => diff/diff-merges.h (100%) rename diff-no-index.c => diff/diff-no-index.c (99%) rename diff.c => diff/diff.c (99%) rename diff.h => diff/diff.h (100%) rename diffcore-break.c => diff/diffcore-break.c (99%) rename diffcore-delta.c => diff/diffcore-delta.c (99%) rename diffcore-order.c => diff/diffcore-order.c (97%) rename diffcore-pickaxe.c => diff/diffcore-pickaxe.c (98%) rename diffcore-rename.c => diff/diffcore-rename.c (99%) rename diffcore-rotate.c => diff/diffcore-rotate.c (95%) rename diffcore.h => diff/diffcore.h (100%) rename patch-ids.c => diff/patch-ids.c (98%) rename patch-ids.h => diff/patch-ids.h (98%) rename range-diff.c => diff/range-diff.c (99%) rename range-diff.h => diff/range-diff.h (98%) rename tree-diff.c => diff/tree-diff.c (99%) rename userdiff.c => diff/userdiff.c (99%) rename userdiff.h => diff/userdiff.h (100%) rename xdiff-interface.c => diff/xdiff-interface.c (99%) rename xdiff-interface.h => diff/xdiff-interface.h (100%)
.gitorganize +23 -23
@@ -62,7 +62,6 @@ color.c component=? role=lib prefix=color includes=setup:1 cochange=diff:21,inde color.h component=? role=public prefix=color cochange=diff:18,index:12,revision:12,transport:2,odb:1 column.c component=? role=lib prefix=column includes=setup:1 cochange=transport:6,setup:5,diff:4,revision:3,index:2 column.h component=? role=public prefix=column -combine-diff.c component=diff role=lib prefix=combine-diff includes=odb:5,diff:4,revision:2,convert:1,refs:1 cochange=diff:198,revision:67,index:35,odb:16,transport:16 commit-reach.c component=revision role=lib prefix=commit-reach includes=revision:3,odb:2,pack:1,refs:1 cochange=revision:38,odb:17,pack:15,transport:9,index:5 commit-reach.h component=revision role=header prefix=commit-reach includes=odb:2 cochange=revision:32,odb:9,transport:8,pack:3,refs:3 common-exit.c component=? role=lib prefix=common-main
@@ -91,19 +90,29 @@ decorate.c component=revision role=lib prefix=decorate includes=odb:1,revision:1 decorate.h component=revision role=header prefix=decorate cochange=revision:4,odb:1 diagnose.c component=? role=lib prefix=diagnose includes=archive:1,index:1,odb:1,pack:1,setup:1 cochange=index:4,revision:4,odb:3,pack:3,transport:3 diagnose.h component=? role=public prefix=diagnose cochange=revision:2,refs:1,transport:1 -diff-lib.c component=diff role=lib prefix=diff includes=index:6,odb:3,diff:2,revision:2,refs:1 cochange=diff:150,index:124,revision:47,submodule:18,odb:8 -diff-merges.c component=diff role=lib prefix=diff-merges includes=diff:1,revision:1 cochange=revision:18,diff:17,odb:4,refs:3,index:2 -diff-merges.h component=diff role=header prefix=diff-merges cochange=diff:11,revision:4,merge:1 -diff-no-index.c component=diff role=lib prefix=diff includes=diff:2,index:2,odb:1,revision:1 cochange=diff:76,revision:21,index:19,refs:8,notes:7 -diff.c component=diff role=lib prefix=diff includes=odb:5,diff:4,setup:3,convert:2,index:2 cochange=diff:610,revision:121,index:100,transport:71,setup:69 -diff.h component=diff role=header prefix=diff includes=index:1,odb:1 cochange=diff:471,revision:83,index:29,submodule:18,odb:14 -diffcore-break.c component=diff role=lib prefix=diffcore-break includes=odb:2,diff:1,transport:1 cochange=diff:71,pack:8,revision:7,index:5,merge:3 -diffcore-delta.c component=diff role=lib prefix=diffcore-delta includes=diff:1 cochange=diff:26,revision:7,odb:4,index:2,refs:2 -diffcore-order.c component=diff role=lib prefix=diffcore-order includes=diff:2 cochange=diff:19,index:8,refs:7,revision:7,pack:5 -diffcore-pickaxe.c component=diff role=lib prefix=pickaxe includes=diff:3,odb:1,revision:1 cochange=diff:97,revision:15,notes:3,odb:3,merge:2 -diffcore-rename.c component=diff role=lib prefix=diffcore-rename includes=diff:2,odb:2,transport:1 cochange=diff:188,index:38,revision:37,odb:21,pack:17 -diffcore-rotate.c component=diff role=lib prefix=diff includes=diff:2 cochange=diff:14,revision:5,pack:2,merge:1,refs:1 -diffcore.h component=diff role=header prefix=diff includes=odb:1 cochange=diff:175,revision:11,merge:10,submodule:4,odb:2 +diff/combine-diff.c component=diff role=lib prefix=combine-diff includes=odb:5,diff:4,revision:2,convert:1,refs:1 cochange=diff:198,revision:67,index:35,odb:16,transport:16 +diff/diff-lib.c component=diff role=lib prefix=diff includes=index:6,odb:3,diff:2,revision:2,refs:1 cochange=diff:150,index:124,revision:47,submodule:18,odb:8 +diff/diff-merges.c component=diff role=lib prefix=diff-merges includes=diff:1,revision:1 cochange=revision:18,diff:17,odb:4,refs:3,index:2 +diff/diff-merges.h component=diff role=header prefix=diff-merges cochange=diff:11,revision:4,merge:1 +diff/diff-no-index.c component=diff role=lib prefix=diff includes=diff:2,index:2,odb:1,revision:1 cochange=diff:76,revision:21,index:19,refs:8,notes:7 +diff/diff.c component=diff role=lib prefix=diff includes=odb:5,diff:4,setup:3,convert:2,index:2 cochange=diff:610,revision:121,index:100,transport:71,setup:69 +diff/diff.h component=diff role=header prefix=diff includes=index:1,odb:1 cochange=diff:471,revision:83,index:29,submodule:18,odb:14 +diff/diffcore-break.c component=diff role=lib prefix=diffcore-break includes=odb:2,diff:1,transport:1 cochange=diff:71,pack:8,revision:7,index:5,merge:3 +diff/diffcore-delta.c component=diff role=lib prefix=diffcore-delta includes=diff:1 cochange=diff:26,revision:7,odb:4,index:2,refs:2 +diff/diffcore-order.c component=diff role=lib prefix=diffcore-order includes=diff:2 cochange=diff:19,index:8,refs:7,revision:7,pack:5 +diff/diffcore-pickaxe.c component=diff role=lib prefix=pickaxe includes=diff:3,odb:1,revision:1 cochange=diff:97,revision:15,notes:3,odb:3,merge:2 +diff/diffcore-rename.c component=diff role=lib prefix=diffcore-rename includes=diff:2,odb:2,transport:1 cochange=diff:188,index:38,revision:37,odb:21,pack:17 +diff/diffcore-rotate.c component=diff role=lib prefix=diff includes=diff:2 cochange=diff:14,revision:5,pack:2,merge:1,refs:1 +diff/diffcore.h component=diff role=header prefix=diff includes=odb:1 cochange=diff:175,revision:11,merge:10,submodule:4,odb:2 +diff/patch-ids.c component=diff role=lib prefix=patch-ids includes=diff:2,odb:2 cochange=diff:73,revision:34,index:14,odb:13,refs:12 +diff/patch-ids.h component=diff role=header prefix=patch-ids includes=diff:1 cochange=diff:15,revision:3,index:1 +diff/range-diff.c component=diff role=lib prefix=range-diff includes=diff:4,odb:2,revision:2,setup:2 cochange=diff:49,revision:26,index:9,submodule:8,setup:7 +diff/range-diff.h component=diff role=header prefix=range-diff includes=diff:1 cochange=diff:13,revision:4 +diff/tree-diff.c component=diff role=lib prefix=tree-diff includes=odb:3,diff:2,index:1,setup:1 cochange=diff:115,odb:56,revision:53,index:36,notes:12 +diff/userdiff.c component=diff role=lib prefix=userdiff includes=setup:2,convert:1,diff:1 cochange=diff:41,convert:34,archive:11,index:7,transport:6 +diff/userdiff.h component=diff role=header prefix=diff includes=notes:1 cochange=diff:40,notes:2,archive:1,merge:1,revision:1 +diff/xdiff-interface.c component=diff role=lib prefix=xdiff-interface includes=setup:2,diff:1,odb:1 cochange=diff:73,index:5,merge:3,notes:3,refs:3 +diff/xdiff-interface.h component=diff role=header prefix=xdiff-interface includes=odb:1 cochange=diff:62,index:2,notes:2,merge:1,odb:1 dir-iterator.c component=index role=lib prefix=dir-iterator includes=index:2 cochange=index:7,refs:1 dir-iterator.h component=index role=header prefix=dir-iterator cochange=index:7,refs:1 dir.c component=index role=lib prefix=dir includes=index:7,setup:4,odb:2,convert:1,refs:1 cochange=index:343,diff:61,setup:49,odb:37,convert:29
@@ -321,8 +330,6 @@ parse-options.c component=? role=lib prefix=parse-options cochange=index:14,diff parse-options.h component=? role=public prefix=parse-options cochange=diff:7,merge:4,archive:3,index:3,refs:3 parse.c component=? role=lib prefix=parse cochange=setup:6,index:3,pack:2,convert:1 parse.h component=? role=public prefix=config cochange=setup:6,index:3,pack:2,convert:1 -patch-ids.c component=diff role=lib prefix=patch-ids includes=diff:2,odb:2 cochange=diff:73,revision:34,index:14,odb:13,refs:12 -patch-ids.h component=diff role=header prefix=patch-ids includes=diff:1 cochange=diff:15,revision:3,index:1 path-walk.c component=? role=lib prefix=path-walk includes=odb:9,revision:3,index:1,setup:1 cochange=index:2,revision:2,transport:2,odb:1,pack:1 path-walk.h component=? role=public prefix=path-walk includes=odb:1 cochange=index:2 path.c component=? role=lib prefix=path includes=setup:2,index:1,odb:1,pack:1,refs:1 cochange=setup:78,refs:29,index:26,transport:15,odb:12
@@ -349,8 +356,6 @@ protocol.c component=transport role=lib prefix=protocol includes=setup:2,transpo protocol.h component=transport role=header prefix=protocol cochange=transport:5 quote.c component=? role=lib prefix=quote cochange=index:15,diff:12,transport:7,odb:6,revision:6 quote.h component=? role=public prefix=quote cochange=diff:8,transport:6,index:5,odb:5,refs:5 -range-diff.c component=diff role=lib prefix=range-diff includes=diff:4,odb:2,revision:2,setup:2 cochange=diff:49,revision:26,index:9,submodule:8,setup:7 -range-diff.h component=diff role=header prefix=range-diff includes=diff:1 cochange=diff:13,revision:4 read-cache-ll.h component=index role=header prefix=read-cache includes=index:1,odb:1 cochange=index:8,diff:1,odb:1,revision:1 read-cache.c component=index role=lib prefix=read-cache includes=index:10,odb:6,setup:4,diff:2,submodule:2 cochange=index:240,odb:81,setup:79,diff:67,pack:46 read-cache.h component=index role=header prefix=read-cache includes=index:2,odb:1,setup:1 cochange=index:4,setup:4,diff:2
@@ -453,7 +458,6 @@ transport-helper.c component=transport role=lib prefix=transport-helper includes transport-internal.h component=transport role=header prefix=transport includes=transport:1 cochange=transport:42,refs:3,odb:1,submodule:1 transport.c component=transport role=lib prefix=transport includes=transport:12,setup:3,odb:2,refs:2,submodule:1 cochange=transport:482,refs:35,setup:31,submodule:29,revision:21 transport.h component=transport role=header prefix=transport includes=transport:2,revision:1 cochange=transport:249,submodule:6,odb:4,revision:2,diff:1 -tree-diff.c component=diff role=lib prefix=tree-diff includes=odb:3,diff:2,index:1,setup:1 cochange=diff:115,odb:56,revision:53,index:36,notes:12 unicode-width.h component=? role=public prefix=unicode unix-socket.c component=? role=lib prefix=unix-socket cochange=diff:3,revision:2,setup:1 unix-socket.h component=? role=public prefix=unix-socket
@@ -468,8 +472,6 @@ url.h component=? role=public prefix=url cochange=transport:9,revision:4,submodu urlmatch.c component=? role=lib prefix=urlmatch cochange=diff:3,odb:2,revision:2,setup:2,transport:2 urlmatch.h component=? role=public prefix=urlmatch includes=setup:1 cochange=transport:1 usage.c component=? role=lib prefix=usage cochange=index:3,odb:2,diff:1,revision:1,setup:1 -userdiff.c component=diff role=lib prefix=userdiff includes=setup:2,convert:1,diff:1 cochange=diff:41,convert:34,archive:11,index:7,transport:6 -userdiff.h component=diff role=header prefix=diff includes=notes:1 cochange=diff:40,notes:2,archive:1,merge:1,revision:1 utf8.c component=? role=lib prefix=utf8 cochange=revision:6,index:3,setup:3,transport:2,convert:1 utf8.h component=? role=public prefix=utf8 cochange=revision:6,index:2,setup:2,transport:2,convert:1 varint.c component=? role=lib prefix=varint cochange=index:2,transport:1
@@ -490,5 +492,3 @@ ws.c component=convert role=lib prefix=whitespace includes=convert:2 cochange=co ws.h component=convert role=header prefix=whitespace cochange=diff:5,convert:2,setup:2 wt-status.c component=index role=lib prefix=wt-status includes=odb:5,index:4,setup:3,diff:2,refs:2 cochange=index:149,diff:83,transport:55,refs:45,revision:45 wt-status.h component=index role=header prefix=wt-status includes=index:1,transport:1 cochange=index:89,diff:10,refs:9,revision:4,transport:4 -xdiff-interface.c component=diff role=lib prefix=xdiff-interface includes=setup:2,diff:1,odb:1 cochange=diff:73,index:5,merge:3,notes:3,refs:3 -xdiff-interface.h component=diff role=header prefix=xdiff-interface includes=odb:1 cochange=diff:62,index:2,notes:2,merge:1,odb:1
Makefile +16 -16
@@ -1124,7 +1124,7 @@ LIB_OBJS += checkout.o LIB_OBJS += pack/chunk-format.o LIB_OBJS += color.o LIB_OBJS += column.o -LIB_OBJS += combine-diff.o +LIB_OBJS += diff/combine-diff.o LIB_OBJS += pack/commit-graph.o LIB_OBJS += commit-reach.o LIB_OBJS += odb/commit.o
@@ -1148,16 +1148,16 @@ LIB_OBJS += decorate.o LIB_OBJS += pack/delta-islands.o LIB_OBJS += diagnose.o LIB_OBJS += pack/diff-delta.o -LIB_OBJS += diff-merges.o -LIB_OBJS += diff-lib.o -LIB_OBJS += diff-no-index.o -LIB_OBJS += diff.o -LIB_OBJS += diffcore-break.o -LIB_OBJS += diffcore-delta.o -LIB_OBJS += diffcore-order.o -LIB_OBJS += diffcore-pickaxe.o -LIB_OBJS += diffcore-rename.o -LIB_OBJS += diffcore-rotate.o +LIB_OBJS += diff/diff-merges.o +LIB_OBJS += diff/diff-lib.o +LIB_OBJS += diff/diff-no-index.o +LIB_OBJS += diff/diff.o +LIB_OBJS += diff/diffcore-break.o +LIB_OBJS += diff/diffcore-delta.o +LIB_OBJS += diff/diffcore-order.o +LIB_OBJS += diff/diffcore-pickaxe.o +LIB_OBJS += diff/diffcore-rename.o +LIB_OBJS += diff/diffcore-rotate.o LIB_OBJS += dir-iterator.o LIB_OBJS += dir.o LIB_OBJS += editor.o
@@ -1257,7 +1257,7 @@ LIB_OBJS += parse.o LIB_OBJS += parse-options-cb.o LIB_OBJS += parse-options.o LIB_OBJS += pack/patch-delta.o -LIB_OBJS += patch-ids.o +LIB_OBJS += diff/patch-ids.o LIB_OBJS += path.o LIB_OBJS += path-walk.o LIB_OBJS += pathspec.o
@@ -1273,7 +1273,7 @@ LIB_OBJS += protocol-caps.o LIB_OBJS += pack/prune-packed.o LIB_OBJS += pack/pseudo-merge.o LIB_OBJS += quote.o -LIB_OBJS += range-diff.o +LIB_OBJS += diff/range-diff.o LIB_OBJS += pack/reachable.o LIB_OBJS += read-cache.o LIB_OBJS += rebase-interactive.o
@@ -1360,7 +1360,7 @@ LIB_OBJS += trace2/tr2_tmr.o LIB_OBJS += trailer.o LIB_OBJS += transport-helper.o LIB_OBJS += transport.o -LIB_OBJS += tree-diff.o +LIB_OBJS += diff/tree-diff.o LIB_OBJS += odb/tree-walk.o LIB_OBJS += odb/tree.o LIB_OBJS += unpack-trees.o
@@ -1368,7 +1368,7 @@ LIB_OBJS += upload-pack.o LIB_OBJS += url.o LIB_OBJS += urlmatch.o LIB_OBJS += usage.o -LIB_OBJS += userdiff.o +LIB_OBJS += diff/userdiff.o LIB_OBJS += utf8.o ifdef NO_RUST LIB_OBJS += varint.o
@@ -1382,7 +1382,7 @@ LIB_OBJS += wrapper.o LIB_OBJS += write-or-die.o LIB_OBJS += ws.o LIB_OBJS += wt-status.o -LIB_OBJS += xdiff-interface.o +LIB_OBJS += diff/xdiff-interface.o LIB_OBJS += xdiff/xdiffi.o LIB_OBJS += xdiff/xemit.o LIB_OBJS += xdiff/xhistogram.o
add-interactive.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "add-interactive.h" #include "color.h" -#include "diffcore.h" +#include "diff/diffcore.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
add-patch.c +1 -1
@@ -6,7 +6,7 @@#include "advice.h" #include "odb/commit.h" #include "config.h" -#include "diff.h" +#include "diff/diff.h" #include "editor.h" #include "environment.h" #include "gettext.h"
apply.c +2 -2
@@ -16,12 +16,12 @@#include "config.h" #include "odb/odb.h" #include "pack/delta.h" -#include "diff.h" +#include "diff/diff.h" #include "dir.h" #include "environment.h" #include "gettext.h" #include "hex.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "merge-ll.h" #include "lockfile.h" #include "name-hash.h"
archive-zip.c +2 -2
@@ -14,9 +14,9 @@#include "odb/odb.h" #include "odb/streaming.h" #include "strbuf.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "write-or-die.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "date.h" static int zip_date;
bisect.c +1 -1
@@ -4,7 +4,7 @@#include "git-compat-util.h" #include "config.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "environment.h" #include "gettext.h" #include "hex.h"
blame.c +2 -2
@@ -8,8 +8,8 @@#include "mergesort.h" #include "odb/commit.h" #include "convert.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "gettext.h" #include "hex.h" #include "path.h"
blame.h +1 -1
@@ -2,7 +2,7 @@#define BLAME_H #include "odb/oidset.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "prio-queue.h" #define PICKAXE_BLAME_MOVE 01
builtin/add.c +1 -1
@@ -20,7 +20,7 @@#include "parse-options.h" #include "path.h" #include "preload-index.h" -#include "diff.h" +#include "diff/diff.h" #include "read-cache.h" #include "revision.h" #include "strvec.h"
builtin/am.c +1 -1
@@ -24,7 +24,7 @@#include "cache-tree.h" #include "refs/refs.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "unpack-trees.h" #include "branch.h" #include "odb/object-name.h"
builtin/blame.c +2 -2
@@ -14,7 +14,7 @@#include "gettext.h" #include "hex.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "quote.h" #include "string-list.h"
@@ -22,7 +22,7 @@#include "parse-options.h" #include "prio-queue.h" #include "utf8.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "line-range.h" #include "line-log.h" #include "progress.h"
builtin/cat-file.c +2 -2
@@ -10,14 +10,14 @@#include "builtin.h" #include "config.h" #include "convert.h" -#include "diff.h" +#include "diff/diff.h" #include "environment.h" #include "gettext.h" #include "hex.h" #include "ident.h" #include "list-objects-filter-options.h" #include "parse-options.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "odb/oid-array.h" #include "pack/packfile.h" #include "odb/object-file.h"
builtin/checkout.c +2 -2
@@ -8,7 +8,7 @@#include "checkout.h" #include "odb/commit.h" #include "config.h" -#include "diff.h" +#include "diff/diff.h" #include "dir.h" #include "environment.h" #include "gettext.h"
@@ -40,7 +40,7 @@#include "odb/tree-walk.h" #include "unpack-trees.h" #include "wt-status.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "entry.h" #include "parallel-checkout.h" #include "add-interactive.h"
builtin/commit.c +1 -1
@@ -17,7 +17,7 @@#include "dir.h" #include "editor.h" #include "environment.h" -#include "diff.h" +#include "diff/diff.h" #include "odb/commit.h" #include "add-interactive.h" #include "gettext.h"
builtin/describe.c +1 -1
@@ -14,7 +14,7 @@#include "parse-options.h" #include "read-cache-ll.h" #include "revision.h" -#include "diff.h" +#include "diff/diff.h" #include "hashmap.h" #include "setup.h" #include "strvec.h"
builtin/diff-files.c +2 -2
@@ -9,8 +9,8 @@#include "builtin.h" #include "config.h" -#include "diff.h" -#include "diff-merges.h" +#include "diff/diff.h" +#include "diff/diff-merges.h" #include "odb/commit.h" #include "preload-index.h" #include "revision.h"
builtin/diff-index.c +2 -2
@@ -3,8 +3,8 @@#include "builtin.h" #include "config.h" -#include "diff.h" -#include "diff-merges.h" +#include "diff/diff.h" +#include "diff/diff-merges.h" #include "odb/commit.h" #include "preload-index.h" #include "revision.h"
builtin/diff-pairs.c +2 -2
@@ -1,7 +1,7 @@#include "builtin.h" #include "config.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
builtin/diff-tree.c +1 -1
@@ -2,7 +2,7 @@#include "builtin.h" #include "config.h" -#include "diff.h" +#include "diff/diff.h" #include "odb/commit.h" #include "gettext.h" #include "hex.h"
builtin/diff.c +3 -3
@@ -15,9 +15,9 @@#include "odb/commit.h" #include "gettext.h" #include "odb/tag.h" -#include "diff.h" -#include "diff-merges.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diff-merges.h" +#include "diff/diffcore.h" #include "preload-index.h" #include "read-cache-ll.h" #include "revision.h"
builtin/fast-export.c +2 -2
@@ -19,8 +19,8 @@#include "odb/commit.h" #include "odb/object.h" #include "odb/tag.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "log-tree.h" #include "revision.h" #include "decorate.h"
builtin/last-modified.c +2 -2
@@ -5,8 +5,8 @@#include "odb/commit-slab.h" #include "odb/commit.h" #include "config.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "environment.h" #include "ewah/ewok.h" #include "hashmap.h"
builtin/log.c +6 -6
@@ -20,16 +20,16 @@#include "pager.h" #include "color.h" #include "odb/commit.h" -#include "diff.h" -#include "diffcore.h" -#include "diff-merges.h" +#include "diff/diff.h" +#include "diff/diffcore.h" +#include "diff/diff-merges.h" #include "revision.h" #include "log-tree.h" #include "odb/oid-array.h" #include "odb/oidset.h" #include "odb/tag.h" #include "refs/reflog-walk.h" -#include "patch-ids.h" +#include "diff/patch-ids.h" #include "path.h" #include "shortlog.h" #include "remote.h"
@@ -46,10 +46,10 @@#include "commit-reach.h" #include "promisor-remote.h" -#include "range-diff.h" +#include "diff/range-diff.h" #include "odb/tmp-objdir.h" #include "odb/tree.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "write-or-die.h" #define MAIL_DEFAULT_WRAP 72
builtin/merge-file.c +2 -2
@@ -3,7 +3,7 @@#include "builtin.h" #include "abspath.h" -#include "diff.h" +#include "diff/diff.h" #include "hex.h" #include "odb/object-file.h" #include "odb/object-name.h"
@@ -12,7 +12,7 @@#include "gettext.h" #include "setup.h" #include "xdiff/xdiff.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "parse-options.h" static const char *const merge_file_usage[] = {
builtin/merge-ours.c +1 -1
@@ -12,7 +12,7 @@#include "builtin.h" #include "config.h" #include "environment.h" -#include "diff.h" +#include "diff/diff.h" static const char builtin_merge_ours_usage[] ="git merge-ours <base>... -- HEAD <remote>..." ;
builtin/merge-tree.c +1 -1
@@ -3,7 +3,7 @@#include "builtin.h" #include "environment.h" #include "odb/tree-walk.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "help.h" #include "gettext.h" #include "hex.h"
builtin/merge.c +3 -3
@@ -24,12 +24,12 @@#include "repository.h" #include "run-command.h" #include "hook.h" -#include "diff.h" -#include "diff-merges.h" +#include "diff/diff.h" +#include "diff/diff-merges.h" #include "refs/refs.h" #include "refs/refspec.h" #include "odb/commit.h" -#include "diffcore.h" +#include "diff/diffcore.h" #include "path.h" #include "revision.h" #include "unpack-trees.h"
builtin/pack-objects.c +1 -1
@@ -15,7 +15,7 @@#include "pack/pack-revindex.h" #include "csum-file.h" #include "odb/tree-walk.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "list-objects.h" #include "list-objects-filter-options.h"
builtin/patch-id.c +1 -1
@@ -2,7 +2,7 @@#include "builtin.h" #include "config.h" -#include "diff.h" +#include "diff/diff.h" #include "environment.h" #include "gettext.h" #include "odb/hash.h"
builtin/prune.c +1 -1
@@ -2,7 +2,7 @@#include "builtin.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "dir.h" #include "environment.h" #include "gettext.h"
builtin/range-diff.c +1 -1
@@ -4,7 +4,7 @@#include "gettext.h" #include "odb/object-name.h" #include "parse-options.h" -#include "range-diff.h" +#include "diff/range-diff.h" #include "config.h" #include "parse.h" #include "color.h"
builtin/rebase.c +1 -1
@@ -25,7 +25,7 @@#include "parse-options.h" #include "path.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "wt-status.h" #include "revision.h" #include "commit-reach.h"
builtin/rerere.c +1 -1
@@ -8,7 +8,7 @@#include "strbuf.h" #include "string-list.h" #include "xdiff/xdiff.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "pathspec.h" static const char *const rerere_usage[] = {
builtin/reset.c +2 -2
@@ -21,8 +21,8 @@#include "odb/object.h" #include "pretty.h" #include "refs/refs.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "odb/tree.h" #include "branch.h" #include "odb/object-name.h"
builtin/rev-list.c +1 -1
@@ -4,7 +4,7 @@#include "builtin.h" #include "config.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "environment.h" #include "gettext.h" #include "hex.h"
builtin/rev-parse.c +1 -1
@@ -22,7 +22,7 @@#include "odb/object-name.h" #include "parse-options.h" #include "path.h" -#include "diff.h" +#include "diff/diff.h" #include "read-cache-ll.h" #include "repo-settings.h" #include "repository.h"
builtin/revert.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "builtin.h" #include "parse-options.h" -#include "diff.h" +#include "diff/diff.h" #include "environment.h" #include "gettext.h" #include "revision.h"
builtin/shortlog.c +1 -1
@@ -3,7 +3,7 @@#include "builtin.h" #include "config.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "environment.h" #include "gettext.h" #include "string-list.h"
builtin/stash.c +1 -1
@@ -26,7 +26,7 @@#include "setup.h" #include "sparse-index.h" #include "log-tree.h" -#include "diffcore.h" +#include "diff/diffcore.h" #include "refs/reflog.h" #include "refs/reflog-walk.h" #include "add-interactive.h"
builtin/submodule--helper.c +2 -2
@@ -24,8 +24,8 @@#include "refs/refs.h" #include "refs/refspec.h" #include "revision.h" -#include "diffcore.h" -#include "diff.h" +#include "diff/diffcore.h" +#include "diff/diff.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h"
builtin/tag.c +1 -1
@@ -23,7 +23,7 @@#include "path.h" #include "odb/tag.h" #include "parse-options.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "gpg-interface.h" #include "odb/oid-array.h"
bundle.c +1 -1
@@ -11,7 +11,7 @@#include "repository.h" #include "odb/object.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "list-objects.h" #include "run-command.h"
diff/combine-diff.c renamed from combine-diff.c +4 -4
@@ -5,18 +5,18 @@#include "odb/odb.h" #include "odb/commit.h" #include "convert.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "environment.h" #include "hex.h" #include "odb/object-name.h" #include "quote.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "xdiff/xmacros.h" #include "log-tree.h" #include "refs/refs.h" #include "odb/tree.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "odb/oid-array.h" #include "revision.h"
diff/diff-lib.c renamed from diff-lib.c +2 -2
@@ -7,8 +7,8 @@#include "git-compat-util.h" #include "odb/commit.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
diff/diff-merges.c renamed from diff-merges.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "diff-merges.h" +#include "diff/diff-merges.h" #include "gettext.h" #include "revision.h"
diff/diff-merges.h renamed from diff-merges.h +0 -0
diff/diff-no-index.c renamed from diff-no-index.c +2 -2
@@ -10,8 +10,8 @@#include "abspath.h" #include "color.h" #include "odb/commit.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "gettext.h" #include "revision.h" #include "parse-options.h"
diff/diff.c renamed from diff.c +4 -4
@@ -15,16 +15,16 @@#include "tempfile.h" #include "revision.h" #include "quote.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "pack/delta.h" #include "hex.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "color.h" #include "run-command.h" #include "utf8.h" #include "odb/odb.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "submodule.h" #include "hashmap.h" #include "mem-pool.h"
diff/diff.h renamed from diff.h +0 -0
diff/diffcore-break.c renamed from diffcore-break.c +1 -1
@@ -5,7 +5,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "diffcore.h" +#include "diff/diffcore.h" #include "odb/hash.h" #include "odb/object.h" #include "promisor-remote.h"
diff/diffcore-delta.c renamed from diffcore-delta.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "diffcore.h" +#include "diff/diffcore.h" /* * Idea here is very simple.
diff/diffcore-order.c renamed from diffcore-order.c +2 -2
@@ -4,8 +4,8 @@#include "git-compat-util.h" #include "gettext.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "wildmatch.h" static char **order;
diff/diffcore-pickaxe.c renamed from diffcore-pickaxe.c +3 -3
@@ -6,9 +6,9 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "diff.h" -#include "diffcore.h" -#include "xdiff-interface.h" +#include "diff/diff.h" +#include "diff/diffcore.h" +#include "diff/xdiff-interface.h" #include "kwset.h" #include "odb/oidset.h" #include "pretty.h"
diff/diffcore-rename.c renamed from diffcore-rename.c +2 -2
@@ -6,8 +6,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "odb/object-file.h" #include "hashmap.h" #include "mem-pool.h"
diff/diffcore-rotate.c renamed from diffcore-rotate.c +2 -2
@@ -5,8 +5,8 @@#include "git-compat-util.h" #include "gettext.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" void diffcore_rotate (struct diff_options *opt) {
diff/diffcore.h renamed from diffcore.h +0 -0
diff/patch-ids.c renamed from patch-ids.c +2 -2
@@ -1,9 +1,9 @@#include "git-compat-util.h" -#include "diff.h" +#include "diff/diff.h" #include "odb/commit.h" #include "odb/hash.h" #include "hex.h" -#include "patch-ids.h" +#include "diff/patch-ids.h" static int patch_id_defined (struct commit *commit) {
diff/patch-ids.h renamed from patch-ids.h +1 -1
@@ -1,7 +1,7 @@#ifndef PATCH_IDS_H #define PATCH_IDS_H -#include "diff.h" +#include "diff/diff.h" #include "hashmap.h" struct commit ;
diff/range-diff.c renamed from range-diff.c +4 -4
@@ -4,20 +4,20 @@#include "git-compat-util.h" #include "environment.h" #include "gettext.h" -#include "range-diff.h" +#include "diff/range-diff.h" #include "odb/object-name.h" #include "string-list.h" #include "run-command.h" #include "strvec.h" #include "hashmap.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "linear-assignment.h" -#include "diffcore.h" +#include "diff/diffcore.h" #include "odb/commit.h" #include "pager.h" #include "pretty.h" #include "repository.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "apply.h" #include "revision.h"
diff/range-diff.h renamed from range-diff.h +1 -1
@@ -1,7 +1,7 @@#ifndef RANGE_DIFF_H #define RANGE_DIFF_H -#include "diff.h" +#include "diff/diff.h" #include "strvec.h" #define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
diff/tree-diff.c renamed from tree-diff.c +2 -2
@@ -5,8 +5,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "odb/hash.h" #include "odb/tree.h" #include "odb/tree-walk.h"
diff/userdiff.c renamed from userdiff.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "config.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "attr.h" #include "strbuf.h" #include "environment.h"
diff/userdiff.h renamed from userdiff.h +0 -0
diff/xdiff-interface.c renamed from xdiff-interface.c +1 -1
@@ -7,7 +7,7 @@#include "hex.h" #include "odb/odb.h" #include "strbuf.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "xdiff/xtypes.h" #include "xdiff/xdiffi.h" #include "xdiff/xutils.h"
diff/xdiff-interface.h renamed from xdiff-interface.h +0 -0
fmt-merge-msg.c +2 -2
@@ -7,8 +7,8 @@#include "refs/refs.h" #include "odb/object-name.h" #include "odb/odb.h" -#include "diff.h" -#include "diff-merges.h" +#include "diff/diff.h" +#include "diff/diff-merges.h" #include "hex.h" #include "revision.h" #include "odb/tag.h"
graph.h +1 -1
@@ -1,6 +1,6 @@#ifndef GRAPH_H #define GRAPH_H -#include "diff.h" +#include "diff/diff.h" /** * The graph API is used to draw a text-based representation of the commit
grep.c +4 -4
@@ -7,10 +7,10 @@#include "hex.h" #include "odb/odb.h" #include "pretty.h" -#include "userdiff.h" -#include "xdiff-interface.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/userdiff.h" +#include "diff/xdiff-interface.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "quote.h" #include "help.h"
grep.h +1 -1
@@ -24,7 +24,7 @@ typedef int pcre2_general_context;#define PCRE2_MATCH_INVALID_UTF 0#endif #include "thread-utils.h" -#include "userdiff.h" +#include "diff/userdiff.h" struct repository ;
http-push.c +1 -1
@@ -8,7 +8,7 @@#include "odb/tag.h" #include "odb/blob.h" #include "http.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "remote.h" #include "list-objects.h"
line-log.c +3 -3
@@ -1,17 +1,17 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "diffcore.h" +#include "diff/diffcore.h" #include "line-range.h" #include "hex.h" #include "odb/tag.h" #include "odb/tree.h" -#include "diff.h" +#include "diff/diff.h" #include "odb/commit.h" #include "decorate.h" #include "repository.h" #include "revision.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "strbuf.h" #include "line-log.h" #include "setup.h"
line-log.h +1 -1
@@ -1,7 +1,7 @@#ifndef LINE_LOG_H #define LINE_LOG_H -#include "diffcore.h" /* struct range, struct range_set */ +#include "diff/diffcore.h" /* struct range, struct range_set */ struct rev_info ;struct commit ;
line-range.c +2 -2
@@ -1,7 +1,7 @@#include "git-compat-util.h" #include "line-range.h" -#include "xdiff-interface.h" -#include "userdiff.h" +#include "diff/xdiff-interface.h" +#include "diff/userdiff.h" /* * Parse one item in the -L option
list-objects-filter.c +1 -1
@@ -5,7 +5,7 @@#include "gettext.h" #include "hex.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "list-objects-filter.h" #include "list-objects-filter-options.h"
list-objects.c +1 -1
@@ -7,7 +7,7 @@#include "hex.h" #include "odb/tree.h" #include "odb/blob.h" -#include "diff.h" +#include "diff/diff.h" #include "odb/tree-walk.h" #include "revision.h" #include "list-objects.h"
log-tree.c +3 -3
@@ -5,8 +5,8 @@#include "commit-reach.h" #include "odb/commit-slab.h" #include "config.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "environment.h" #include "hex.h" #include "odb/object-name.h"
@@ -28,7 +28,7 @@#include "sequencer.h" #include "line-log.h" #include "help.h" -#include "range-diff.h" +#include "diff/range-diff.h" #include "strmap.h" #include "odb/tree.h" #include "wildmatch.h"
merge-ll.c +1 -1
@@ -11,7 +11,7 @@#include "config.h" #include "convert.h" #include "attr.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "run-command.h" #include "merge-ll.h" #include "quote.h"
merge-ort.c +3 -3
@@ -27,8 +27,8 @@#include "odb/commit.h" #include "commit-reach.h" #include "config.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "dir.h" #include "environment.h" #include "gettext.h"
@@ -51,7 +51,7 @@#include "trace2.h" #include "odb/tree.h" #include "unpack-trees.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" /* * We technically need USE_THE_REPOSITORY_VARIABLE above for DEFAULT_ABBREV,
meson.build +16 -16
@@ -333,7 +333,7 @@ libgit_sources = [ 'pack/chunk-format.c', 'color.c', 'column.c', - 'combine-diff.c', + 'diff/combine-diff.c', 'pack/commit-graph.c', 'commit-reach.c', 'odb/commit.c',
@@ -353,16 +353,16 @@ libgit_sources = [ 'pack/delta-islands.c', 'diagnose.c', 'pack/diff-delta.c', - 'diff-merges.c', - 'diff-lib.c', - 'diff-no-index.c', - 'diff.c', - 'diffcore-break.c', - 'diffcore-delta.c', - 'diffcore-order.c', - 'diffcore-pickaxe.c', - 'diffcore-rename.c', - 'diffcore-rotate.c', + 'diff/diff-merges.c', + 'diff/diff-lib.c', + 'diff/diff-no-index.c', + 'diff/diff.c', + 'diff/diffcore-break.c', + 'diff/diffcore-delta.c', + 'diff/diffcore-order.c', + 'diff/diffcore-pickaxe.c', + 'diff/diffcore-rename.c', + 'diff/diffcore-rotate.c', 'dir-iterator.c', 'dir.c', 'editor.c',
@@ -462,7 +462,7 @@ libgit_sources = [ 'parse-options-cb.c', 'parse-options.c', 'pack/patch-delta.c', - 'patch-ids.c', + 'diff/patch-ids.c', 'path.c', 'path-walk.c', 'pathspec.c',
@@ -478,7 +478,7 @@ libgit_sources = [ 'pack/prune-packed.c', 'pack/pseudo-merge.c', 'quote.c', - 'range-diff.c', + 'diff/range-diff.c', 'pack/reachable.c', 'read-cache.c', 'rebase-interactive.c',
@@ -565,7 +565,7 @@ libgit_sources = [ 'trailer.c', 'transport-helper.c', 'transport.c', - 'tree-diff.c', + 'diff/tree-diff.c', 'odb/tree-walk.c', 'odb/tree.c', 'unpack-trees.c',
@@ -573,7 +573,7 @@ libgit_sources = [ 'url.c', 'urlmatch.c', 'usage.c', - 'userdiff.c', + 'diff/userdiff.c', 'utf8.c', 'version.c', 'versioncmp.c',
@@ -584,7 +584,7 @@ libgit_sources = [ 'write-or-die.c', 'ws.c', 'wt-status.c', - 'xdiff-interface.c', + 'diff/xdiff-interface.c', 'xdiff/xdiffi.c', 'xdiff/xemit.c', 'xdiff/xhistogram.c',
notes-merge.c +3 -3
@@ -11,10 +11,10 @@#include "odb/odb.h" #include "path.h" #include "repository.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "hex.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "merge-ll.h" #include "dir.h" #include "notes.h"
odb/commit.c +1 -1
@@ -11,7 +11,7 @@#include "odb/object-name.h" #include "odb/odb.h" #include "utf8.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "notes.h" #include "odb/alloc.h"
pack/bloom.c +2 -2
@@ -2,8 +2,8 @@#include "git-compat-util.h" #include "pack/bloom.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "hashmap.h" #include "pack/commit-graph.h" #include "odb/commit.h"
pack/delta-islands.c +1 -1
@@ -9,7 +9,7 @@#include "odb/tree.h" #include "pack/pack.h" #include "odb/tree-walk.h" -#include "diff.h" +#include "diff/diff.h" #include "progress.h" #include "refs/refs.h" #include "khash.h"
pack/pack-bitmap-write.c +1 -1
@@ -6,7 +6,7 @@#include "hex.h" #include "odb/odb.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "progress.h" #include "pack/pack.h"
pack/pack-bitmap.c +1 -1
@@ -6,7 +6,7 @@#include "hex.h" #include "strbuf.h" #include "odb/tag.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "progress.h" #include "list-objects.h"
pack/reachable.c +1 -1
@@ -6,7 +6,7 @@#include "refs/refs.h" #include "odb/commit.h" #include "odb/blob.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "pack/reachable.h" #include "cache-tree.h"
pretty.c +1 -1
@@ -9,7 +9,7 @@#include "odb/hash.h" #include "hex.h" #include "utf8.h" -#include "diff.h" +#include "diff/diff.h" #include "pager.h" #include "revision.h" #include "string-list.h"
read-cache.c +2 -2
@@ -10,8 +10,8 @@#include "git-compat-util.h" #include "config.h" #include "date.h" -#include "diff.h" -#include "diffcore.h" +#include "diff/diff.h" +#include "diff/diffcore.h" #include "hex.h" #include "tempfile.h" #include "lockfile.h"
refs/reflog-walk.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "odb/commit.h" #include "refs/refs.h" -#include "diff.h" +#include "diff/diff.h" #include "repository.h" #include "revision.h" #include "string-list.h"
remote.c +1 -1
@@ -16,7 +16,7 @@#include "odb/odb.h" #include "path.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "dir.h" #include "setup.h"
rerere.c +1 -1
@@ -12,7 +12,7 @@#include "string-list.h" #include "read-cache-ll.h" #include "rerere.h" -#include "xdiff-interface.h" +#include "diff/xdiff-interface.h" #include "dir.h" #include "resolve-undo.h" #include "merge-ll.h"
revision.c +3 -3
@@ -14,15 +14,15 @@#include "odb/blob.h" #include "odb/tree.h" #include "odb/commit.h" -#include "diff.h" -#include "diff-merges.h" +#include "diff/diff.h" +#include "diff/diff-merges.h" #include "refs/refs.h" #include "revision.h" #include "repository.h" #include "graph.h" #include "grep.h" #include "refs/reflog-walk.h" -#include "patch-ids.h" +#include "diff/patch-ids.h" #include "decorate.h" #include "string-list.h" #include "line-log.h"
revision.h +1 -1
@@ -7,7 +7,7 @@#include "odb/object-name.h" #include "odb/oidset.h" #include "pretty.h" -#include "diff.h" +#include "diff/diff.h" #include "odb/commit-slab-decl.h" #include "decorate.h" #include "ident.h"
sequencer.c +1 -1
@@ -22,7 +22,7 @@#include "hook.h" #include "utf8.h" #include "cache-tree.h" -#include "diff.h" +#include "diff/diff.h" #include "path.h" #include "revision.h" #include "rerere.h"
shallow.c +1 -1
@@ -12,7 +12,7 @@#include "refs/refs.h" #include "odb/oid-array.h" #include "path.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "odb/commit-slab.h" #include "list-objects.h"
submodule.c +2 -2
@@ -8,14 +8,14 @@#include "submodule-config.h" #include "submodule.h" #include "dir.h" -#include "diff.h" +#include "diff/diff.h" #include "odb/commit.h" #include "environment.h" #include "gettext.h" #include "hex.h" #include "revision.h" #include "run-command.h" -#include "diffcore.h" +#include "diff/diffcore.h" #include "refs/refs.h" #include "string-list.h" #include "odb/oid-array.h"
t/helper/test-revision-walking.c +1 -1
@@ -12,7 +12,7 @@#include "test-tool.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "line-log.h" #include "odb/object-name.h" #include "repository.h"
t/helper/test-userdiff.c +1 -1
@@ -2,7 +2,7 @@#include "test-tool.h" #include "setup.h" -#include "userdiff.h" +#include "diff/userdiff.h" #include "config.h" static int driver_cb(struct userdiff_driver *driver,
upload-pack.c +1 -1
@@ -14,7 +14,7 @@#include "odb/oid-array.h" #include "odb/object.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "revision.h" #include "list-objects-filter-options.h" #include "run-command.h"
wt-status.c +2 -2
@@ -7,7 +7,7 @@#include "odb/object.h" #include "dir.h" #include "odb/commit.h" -#include "diff.h" +#include "diff/diff.h" #include "environment.h" #include "gettext.h" #include "odb/hash.h"
@@ -15,7 +15,7 @@#include "odb/object-name.h" #include "path.h" #include "revision.h" -#include "diffcore.h" +#include "diff/diffcore.h" #include "quote.h" #include "repository.h" #include "run-command.h"
Signature · 1 line
2.54.0
RFC PATCH 11/14 revision: gather the revision sources under revision/
In reply to Michael MontalboMove the 14 revision C sources and 15 headers into revision/ as renames. Repoint every reference to their old paths to the new ones: the #include lines across the tree, the Makefile and meson.build build entries, and the tutorial #include examples.
--- .gitorganize | 58 +++++++++---------- Documentation/MyFirstContribution.adoc | 2 +- Documentation/MyFirstObjectWalk.adoc | 6 +- Makefile | 28 ++++----- add-interactive.c | 2 +- archive.c | 2 +- attr.c | 2 +- builtin/add.c | 2 +- builtin/am.c | 6 +- builtin/backfill.c | 2 +- builtin/bisect.c | 4 +- builtin/blame.c | 8 +-- builtin/branch.c | 2 +- builtin/cat-file.c | 2 +- builtin/checkout.c | 2 +- builtin/clone.c | 2 +- builtin/commit.c | 6 +- builtin/describe.c | 4 +- builtin/diff-files.c | 2 +- builtin/diff-index.c | 2 +- builtin/diff-pairs.c | 2 +- builtin/diff-tree.c | 4 +- builtin/diff.c | 4 +- builtin/fast-export.c | 6 +- builtin/fast-import.c | 2 +- builtin/fetch.c | 6 +- builtin/gc.c | 2 +- builtin/history.c | 4 +- builtin/last-modified.c | 2 +- builtin/log.c | 8 +-- builtin/merge-base.c | 2 +- builtin/merge-tree.c | 2 +- builtin/merge.c | 4 +- builtin/name-rev.c | 4 +- builtin/notes.c | 2 +- builtin/pack-objects.c | 10 ++-- builtin/prune.c | 4 +- builtin/pull.c | 2 +- builtin/rebase.c | 4 +- builtin/receive-pack.c | 4 +- builtin/reflog.c | 2 +- builtin/remote.c | 2 +- builtin/repack.c | 2 +- builtin/replay.c | 2 +- builtin/repo.c | 4 +- builtin/reset.c | 2 +- builtin/rev-list.c | 14 ++--- builtin/rev-parse.c | 8 +-- builtin/revert.c | 2 +- builtin/shortlog.c | 2 +- builtin/show-branch.c | 2 +- builtin/stash.c | 4 +- builtin/submodule--helper.c | 4 +- builtin/tag.c | 2 +- builtin/unpack-objects.c | 2 +- bundle.c | 6 +- bundle.h | 2 +- chdir-notify.c | 2 +- diff/combine-diff.c | 4 +- diff/diff-lib.c | 4 +- diff/diff-merges.c | 2 +- diff/diff-no-index.c | 2 +- diff/diff.c | 4 +- diff/diffcore-pickaxe.c | 2 +- diff/range-diff.c | 4 +- fetch-pack.c | 4 +- fetch-pack.h | 2 +- fmt-merge-msg.c | 4 +- git.c | 2 +- grep.c | 2 +- http-push.c | 6 +- http-walker.c | 2 +- merge-ort.c | 4 +- meson.build | 28 ++++----- notes-cache.c | 2 +- notes-merge.c | 2 +- odb/commit.c | 6 +- odb/object-name.c | 4 +- odb/source-packed.c | 2 +- pack/commit-graph.c | 2 +- pack/midx-write.c | 4 +- pack/pack-bitmap-write.c | 4 +- pack/pack-bitmap.c | 6 +- pack/packfile.c | 2 +- pack/packfile.h | 2 +- pack/reachable.c | 4 +- pack/repack.h | 2 +- path-walk.c | 6 +- read-cache.c | 2 +- refs/files-backend.c | 2 +- refs/pack-refs.c | 2 +- refs/ref-filter.c | 4 +- refs/ref-filter.h | 2 +- refs/reflog-walk.c | 2 +- refs/reflog.c | 2 +- remote.c | 4 +- replay.c | 2 +- bisect.c => revision/bisect.c | 10 ++-- bisect.h => revision/bisect.h | 0 blame.c => revision/blame.c | 4 +- blame.h => revision/blame.h | 0 commit-reach.c => revision/commit-reach.c | 6 +- commit-reach.h => revision/commit-reach.h | 0 decorate.c => revision/decorate.c | 2 +- decorate.h => revision/decorate.h | 0 graph.c => revision/graph.c | 4 +- graph.h => revision/graph.h | 0 line-log.c => revision/line-log.c | 8 +-- line-log.h => revision/line-log.h | 0 line-range.c => revision/line-range.c | 2 +- line-range.h => revision/line-range.h | 0 .../list-objects-filter-options.c | 2 +- .../list-objects-filter-options.h | 0 .../list-objects-filter.c | 6 +- .../list-objects-filter.h | 0 list-objects.c => revision/list-objects.c | 8 +-- list-objects.h => revision/list-objects.h | 0 list.h => revision/list.h | 0 log-tree.c => revision/log-tree.c | 10 ++-- log-tree.h => revision/log-tree.h | 0 pretty.c => revision/pretty.c | 4 +- pretty.h => revision/pretty.h | 0 revision.c => revision/revision.c | 16 ++--- revision.h => revision/revision.h | 6 +- shallow.c => revision/shallow.c | 8 +-- shallow.h => revision/shallow.h | 0 send-pack.c | 2 +- sequencer.c | 6 +- setup.c | 2 +- submodule.c | 4 +- t/helper/test-path-walk.c | 6 +- t/helper/test-reach.c | 2 +- t/helper/test-ref-store.c | 2 +- t/helper/test-revision-walking.c | 4 +- t/unit-tests/u-example-decorate.c | 2 +- t/unit-tests/u-list-objects-filter-options.c | 2 +- tempfile.h | 2 +- trailer.c | 2 +- trailer.h | 2 +- transport.h | 2 +- upload-pack.c | 8 +-- wt-status.c | 2 +- 142 files changed, 289 insertions(+), 289 deletions(-) rename bisect.c => revision/bisect.c (99%) rename bisect.h => revision/bisect.h (100%) rename blame.c => revision/blame.c (99%) rename blame.h => revision/blame.h (100%) rename commit-reach.c => revision/commit-reach.c (99%) rename commit-reach.h => revision/commit-reach.h (100%) rename decorate.c => revision/decorate.c (98%) rename decorate.h => revision/decorate.h (100%) rename graph.c => revision/graph.c (99%) rename graph.h => revision/graph.h (100%) rename line-log.c => revision/line-log.c (99%) rename line-log.h => revision/line-log.h (100%) rename line-range.c => revision/line-range.c (99%) rename line-range.h => revision/line-range.h (100%) rename list-objects-filter-options.c => revision/list-objects-filter-options.c (99%) rename list-objects-filter-options.h => revision/list-objects-filter-options.h (100%) rename list-objects-filter.c => revision/list-objects-filter.c (99%) rename list-objects-filter.h => revision/list-objects-filter.h (100%) rename list-objects.c => revision/list-objects.c (98%) rename list-objects.h => revision/list-objects.h (100%) rename list.h => revision/list.h (100%) rename log-tree.c => revision/log-tree.c (99%) rename log-tree.h => revision/log-tree.h (100%) rename pretty.c => revision/pretty.c (99%) rename pretty.h => revision/pretty.h (100%) rename revision.c => revision/revision.c (99%) rename revision.h => revision/revision.h (99%) rename shallow.c => revision/shallow.c (99%) rename shallow.h => revision/shallow.h (100%)
.gitorganize +29 -29
@@ -41,10 +41,6 @@ attr.h component=convert role=header prefix=attr cochange=convert:50,index:13,di banned.h component=? role=public prefix=banned base85.c component=? role=lib prefix=base85 cochange=diff:4,pack:2,convert:1,transport:1 base85.h component=? role=public prefix=base85 cochange=diff:1 -bisect.c component=revision role=lib prefix=bisect includes=odb:5,revision:5,setup:2,diff:1,index:1 cochange=revision:61,odb:32,transport:31,refs:13,diff:9 -bisect.h component=revision role=header prefix=bisect cochange=revision:29,odb:2 -blame.c component=revision role=lib prefix=blame includes=odb:5,diff:2,index:2,pack:2,revision:2 cochange=diff:68,revision:66,odb:56,index:29,pack:22 -blame.h component=revision role=header prefix=blame includes=diff:1,odb:1 cochange=revision:19,odb:7,diff:4,archive:1,index:1 branch.c component=? role=lib prefix=branch includes=refs:3,setup:3,odb:2,submodule:1,transport:1 cochange=refs:62,transport:41,setup:28,index:19,revision:12 branch.h component=? role=public prefix=branch cochange=setup:8,refs:4,submodule:4 builtin.h component=? role=public prefix=builtin includes=setup:1 cochange=diff:15,index:15,transport:12,odb:6,notes:5
@@ -62,8 +58,6 @@ color.c component=? role=lib prefix=color includes=setup:1 cochange=diff:21,inde color.h component=? role=public prefix=color cochange=diff:18,index:12,revision:12,transport:2,odb:1 column.c component=? role=lib prefix=column includes=setup:1 cochange=transport:6,setup:5,diff:4,revision:3,index:2 column.h component=? role=public prefix=column -commit-reach.c component=revision role=lib prefix=commit-reach includes=revision:3,odb:2,pack:1,refs:1 cochange=revision:38,odb:17,pack:15,transport:9,index:5 -commit-reach.h component=revision role=header prefix=commit-reach includes=odb:2 cochange=revision:32,odb:9,transport:8,pack:3,refs:3 common-exit.c component=? role=lib prefix=common-main common-init.c component=? role=lib prefix=common-main includes=odb:2,setup:2,convert:1 cochange=setup:1 common-init.h component=? role=public prefix=common-main
@@ -86,8 +80,6 @@ ctype.c component=? role=lib prefix=ctype cochange=setup:3,index:2,odb:1,pack:1, daemon.c component=? role=program prefix=daemon includes=setup:3,transport:2 cochange=transport:77,index:14,setup:13,diff:7,refs:5 date.c component=? role=lib prefix=date cochange=revision:17,odb:16,refs:14,setup:9,diff:7 date.h component=? role=public prefix=date cochange=refs:7,revision:4,setup:2,archive:1,odb:1 -decorate.c component=revision role=lib prefix=decorate includes=odb:1,revision:1 cochange=diff:6,odb:5,revision:5,pack:2,transport:2 -decorate.h component=revision role=header prefix=decorate cochange=revision:4,odb:1 diagnose.c component=? role=lib prefix=diagnose includes=archive:1,index:1,odb:1,pack:1,setup:1 cochange=index:4,revision:4,odb:3,pack:3,transport:3 diagnose.h component=? role=public prefix=diagnose cochange=revision:2,refs:1,transport:1 diff/combine-diff.c component=diff role=lib prefix=combine-diff includes=odb:5,diff:4,revision:2,convert:1,refs:1 cochange=diff:198,revision:67,index:35,odb:16,transport:16
@@ -152,8 +144,6 @@ git-zlib.h component=? role=public prefix=git-zlib cochange=archive:3,setup:2,od git.c component=? role=lib prefix=git includes=setup:4,odb:2,convert:1,index:1,revision:1 cochange=setup:70,revision:54,transport:47,index:28,diff:25 gpg-interface.c component=? role=lib prefix=gpg-interface includes=setup:3,index:1,odb:1 cochange=revision:25,odb:22,setup:13,transport:11,diff:8 gpg-interface.h component=? role=public prefix=gpg-interface cochange=odb:22,revision:15,merge:4,transport:3,refs:1 -graph.c component=revision role=lib prefix=graph includes=revision:2,odb:1,setup:1 cochange=revision:38,diff:23,index:4,odb:3,transport:3 -graph.h component=revision role=header prefix=graph includes=diff:1 cochange=revision:19,diff:2,odb:1 grep.c component=? role=lib prefix=grep includes=diff:4,odb:1,revision:1,setup:1 cochange=diff:40,revision:28,transport:10,index:7,refs:7 grep.h component=? role=public prefix=grep includes=diff:1 cochange=revision:23,diff:10,transport:4,index:2,refs:2 hashmap.c component=? role=lib prefix=hashmap cochange=diff:33,revision:19,index:17,refs:13,submodule:13
@@ -183,23 +173,10 @@ kwset.c component=? role=lib prefix=kwset cochange=convert:2,diff:1,pack:1,revis kwset.h component=? role=public prefix=kwset levenshtein.c component=? role=lib prefix=? cochange=diff:2,revision:2,odb:1 levenshtein.h component=? role=public prefix=? cochange=transport:2,diff:1,refs:1,setup:1 -line-log.c component=revision role=lib prefix=line-log includes=odb:4,revision:4,diff:3,setup:2,pack:1 cochange=revision:52,diff:48,odb:23,pack:15,notes:8 -line-log.h component=revision role=header prefix=line-log includes=diff:1 cochange=revision:20,odb:3,diff:2,setup:1,submodule:1 -line-range.c component=revision role=lib prefix=line-range includes=diff:2,revision:1 cochange=revision:14,diff:8,archive:1,odb:1,pack:1 -line-range.h component=revision role=header prefix=line-range cochange=revision:13 linear-assignment.c component=? role=lib prefix=linear-assignment cochange=diff:1,revision:1 linear-assignment.h component=? role=public prefix=linear-assignment -list-objects-filter-options.c component=revision role=lib prefix=list-objects-filter-options includes=revision:1,setup:1,transport:1 cochange=revision:39,transport:21,setup:9,diff:6,index:4 -list-objects-filter-options.h component=revision role=header prefix=list-objects-filter includes=odb:1 cochange=revision:40,transport:17,odb:4,diff:3,refs:2 -list-objects-filter.c component=revision role=lib prefix=list-objects-filter includes=odb:5,revision:3,diff:1,index:1 cochange=revision:32,odb:13,index:10,diff:6,pack:3 -list-objects-filter.h component=revision role=header prefix=list-objects cochange=revision:16,odb:1 -list-objects.c component=revision role=lib prefix=list-objects includes=odb:6,revision:4,diff:1,pack:1,setup:1 cochange=revision:91,odb:68,pack:40,transport:28,index:15 -list-objects.h component=revision role=header prefix=list-objects cochange=revision:32,pack:13,transport:4,odb:1 -list.h component=revision role=header prefix=list cochange=submodule:2,transport:2,index:1,revision:1 lockfile.c component=? role=lib prefix=lockfile includes=setup:1 cochange=refs:18,index:13,setup:9,diff:8,merge:3 lockfile.h component=? role=public prefix=lockfile cochange=index:5,revision:4,diff:3,refs:3,odb:2 -log-tree.c component=revision role=lib prefix=format-patch includes=odb:8,revision:5,diff:3,setup:3,refs:2 cochange=revision:222,diff:112,odb:112,refs:31,transport:16 -log-tree.h component=revision role=header prefix=format-patch cochange=revision:64,diff:11,refs:3,odb:2,transport:2 mailinfo.c component=? role=lib prefix=mailinfo includes=setup:2 cochange=transport:5,index:3,notes:3,odb:3,revision:3 mailinfo.h component=? role=public prefix=mailinfo mailmap.c component=? role=lib prefix=mailmap includes=setup:3,odb:2 cochange=setup:13,transport:11,refs:10,index:8,revision:5
@@ -340,8 +317,6 @@ pkt-line.c component=transport role=lib prefix=pkt-line includes=transport:2 coc pkt-line.h component=transport role=header prefix=pkt-line cochange=transport:94,pack:5,convert:4,odb:2,diff:1 preload-index.c component=index role=lib prefix=preload-index includes=index:6,setup:3 cochange=index:52,setup:15,diff:12,revision:5,merge:3 preload-index.h component=index role=header prefix=preload-index cochange=index:2,setup:1 -pretty.c component=revision role=lib prefix=pretty includes=odb:3,revision:2,setup:2,diff:1,notes:1 cochange=revision:115,odb:72,refs:29,notes:23,transport:19 -pretty.h component=revision role=header prefix=pretty cochange=revision:26,refs:7,diff:5,odb:5,archive:4 prio-queue.c component=? role=lib prefix=prio-queue cochange=odb:5,revision:5,diff:2,pack:2,transport:2 prio-queue.h component=? role=public prefix=prio-queue cochange=odb:3,revision:2,transport:2,pack:1 progress.c component=? role=lib prefix=progress includes=setup:1 cochange=index:11,diff:6,setup:6,pack:4,revision:2
@@ -394,8 +369,35 @@ reset.c component=? role=lib prefix=reset includes=odb:3,index:2,refs:1,setup:1 reset.h component=? role=public prefix=reset includes=odb:1,setup:1 resolve-undo.c component=index role=lib prefix=resolve-undo includes=index:4,odb:1 cochange=index:33,merge:5,revision:4,diff:3,notes:2 resolve-undo.h component=index role=header prefix=resolve-undo includes=odb:1 cochange=index:12,merge:3,archive:1,revision:1 -revision.c component=revision role=lib prefix=revision includes=odb:9,revision:8,index:4,setup:4,diff:3 cochange=revision:379,diff:194,odb:181,refs:109,pack:101 -revision.h component=revision role=header prefix=revision includes=odb:4,revision:3,diff:1,notes:1,setup:1 cochange=revision:304,odb:48,diff:24,pack:19,refs:15 +revision/bisect.c component=revision role=lib prefix=bisect includes=odb:5,revision:5,setup:2,diff:1,index:1 cochange=revision:61,odb:32,transport:31,refs:13,diff:9 +revision/bisect.h component=revision role=header prefix=bisect cochange=revision:29,odb:2 +revision/blame.c component=revision role=lib prefix=blame includes=odb:5,diff:2,index:2,pack:2,revision:2 cochange=diff:68,revision:66,odb:56,index:29,pack:22 +revision/blame.h component=revision role=header prefix=blame includes=diff:1,odb:1 cochange=revision:19,odb:7,diff:4,archive:1,index:1 +revision/commit-reach.c component=revision role=lib prefix=commit-reach includes=revision:3,odb:2,pack:1,refs:1 cochange=revision:38,odb:17,pack:15,transport:9,index:5 +revision/commit-reach.h component=revision role=header prefix=commit-reach includes=odb:2 cochange=revision:32,odb:9,transport:8,pack:3,refs:3 +revision/decorate.c component=revision role=lib prefix=decorate includes=odb:1,revision:1 cochange=diff:6,odb:5,revision:5,pack:2,transport:2 +revision/decorate.h component=revision role=header prefix=decorate cochange=revision:4,odb:1 +revision/graph.c component=revision role=lib prefix=graph includes=revision:2,odb:1,setup:1 cochange=revision:38,diff:23,index:4,odb:3,transport:3 +revision/graph.h component=revision role=header prefix=graph includes=diff:1 cochange=revision:19,diff:2,odb:1 +revision/line-log.c component=revision role=lib prefix=line-log includes=odb:4,revision:4,diff:3,setup:2,pack:1 cochange=revision:52,diff:48,odb:23,pack:15,notes:8 +revision/line-log.h component=revision role=header prefix=line-log includes=diff:1 cochange=revision:20,odb:3,diff:2,setup:1,submodule:1 +revision/line-range.c component=revision role=lib prefix=line-range includes=diff:2,revision:1 cochange=revision:14,diff:8,archive:1,odb:1,pack:1 +revision/line-range.h component=revision role=header prefix=line-range cochange=revision:13 +revision/list-objects-filter-options.c component=revision role=lib prefix=list-objects-filter-options includes=revision:1,setup:1,transport:1 cochange=revision:39,transport:21,setup:9,diff:6,index:4 +revision/list-objects-filter-options.h component=revision role=header prefix=list-objects-filter includes=odb:1 cochange=revision:40,transport:17,odb:4,diff:3,refs:2 +revision/list-objects-filter.c component=revision role=lib prefix=list-objects-filter includes=odb:5,revision:3,diff:1,index:1 cochange=revision:32,odb:13,index:10,diff:6,pack:3 +revision/list-objects-filter.h component=revision role=header prefix=list-objects cochange=revision:16,odb:1 +revision/list-objects.c component=revision role=lib prefix=list-objects includes=odb:6,revision:4,diff:1,pack:1,setup:1 cochange=revision:91,odb:68,pack:40,transport:28,index:15 +revision/list-objects.h component=revision role=header prefix=list-objects cochange=revision:32,pack:13,transport:4,odb:1 +revision/list.h component=revision role=header prefix=list cochange=submodule:2,transport:2,index:1,revision:1 +revision/log-tree.c component=revision role=lib prefix=format-patch includes=odb:8,revision:5,diff:3,setup:3,refs:2 cochange=revision:222,diff:112,odb:112,refs:31,transport:16 +revision/log-tree.h component=revision role=header prefix=format-patch cochange=revision:64,diff:11,refs:3,odb:2,transport:2 +revision/pretty.c component=revision role=lib prefix=pretty includes=odb:3,revision:2,setup:2,diff:1,notes:1 cochange=revision:115,odb:72,refs:29,notes:23,transport:19 +revision/pretty.h component=revision role=header prefix=pretty cochange=revision:26,refs:7,diff:5,odb:5,archive:4 +revision/revision.c component=revision role=lib prefix=revision includes=odb:9,revision:8,index:4,setup:4,diff:3 cochange=revision:379,diff:194,odb:181,refs:109,pack:101 +revision/revision.h component=revision role=header prefix=revision includes=odb:4,revision:3,diff:1,notes:1,setup:1 cochange=revision:304,odb:48,diff:24,pack:19,refs:15 +revision/shallow.c component=revision role=lib prefix=shallow includes=odb:5,revision:4,diff:1,index:1,refs:1 cochange=odb:83,transport:73,revision:31,index:20,refs:14 +revision/shallow.h component=revision role=header prefix=shallow includes=odb:2,setup:1 cochange=revision:10,transport:7,odb:5,diff:3,index:2 run-command.c component=? role=lib prefix=run-command includes=setup:2,index:1,pack:1 cochange=transport:27,index:21,setup:14,odb:8,submodule:6 run-command.h component=? role=public prefix=run-command cochange=transport:21,setup:8,odb:6,submodule:5,refs:4 sane-ctype.h component=? role=public prefix=sane-ctype
@@ -411,8 +413,6 @@ setup.h component=setup role=header prefix=setup includes=refs:1 cochange=setup: sh-i18n--envsubst.c component=? role=program prefix=sh-i18n--envsubst cochange=index:3,diff:1,transport:1 sha1dc_git.c component=? role=lib prefix=sha1dc cochange=diff:3,odb:2,revision:2,setup:1 sha1dc_git.h component=? role=public prefix=sha1dc cochange=odb:2 -shallow.c component=revision role=lib prefix=shallow includes=odb:5,revision:4,diff:1,index:1,refs:1 cochange=odb:83,transport:73,revision:31,index:20,refs:14 -shallow.h component=revision role=header prefix=shallow includes=odb:2,setup:1 cochange=revision:10,transport:7,odb:5,diff:3,index:2 shell.c component=? role=program prefix=shell includes=setup:1 cochange=transport:10,setup:4,revision:2 shortlog.h component=? role=public prefix=shortlog cochange=revision:2 sideband.c component=transport role=lib prefix=sideband includes=transport:2,setup:1 cochange=transport:51,revision:6,diff:5,index:5,refs:4
Documentation/MyFirstContribution.adoc +1 -1
@@ -429,7 +429,7 @@ Add the following includes: ---- #include "odb/commit.h" -#include "pretty.h" +#include "revision/pretty.h" #include "strbuf.h" ----
Documentation/MyFirstObjectWalk.adoc +3 -3
@@ -259,7 +259,7 @@ Add the `struct rev_info` and the `repo_init_revisions()` call. We'll also need to include the `revision.h` header: ---- -#include "revision.h" +#include "revision/revision.h" ...
@@ -359,7 +359,7 @@ the walk loop below the `prepare_revision_walk()` call within your `walken_commit_walk()`: ---- -#include "pretty.h" +#include "revision/pretty.h" ...
@@ -668,7 +668,7 @@ Complete your implementation of `walken_object_walk()`. We'll also need to include the `list-objects.h` header. ---- -#include "list-objects.h" +#include "revision/list-objects.h" ...
Makefile +14 -14
@@ -1110,8 +1110,8 @@ LIB_OBJS += archive-zip.o LIB_OBJS += archive.o LIB_OBJS += attr.o LIB_OBJS += base85.o -LIB_OBJS += bisect.o -LIB_OBJS += blame.o +LIB_OBJS += revision/bisect.o +LIB_OBJS += revision/blame.o LIB_OBJS += odb/blob.o LIB_OBJS += pack/bloom.o LIB_OBJS += branch.o
@@ -1126,7 +1126,7 @@ LIB_OBJS += color.o LIB_OBJS += column.o LIB_OBJS += diff/combine-diff.o LIB_OBJS += pack/commit-graph.o -LIB_OBJS += commit-reach.o +LIB_OBJS += revision/commit-reach.o LIB_OBJS += odb/commit.o LIB_OBJS += common-exit.o LIB_OBJS += common-init.o
@@ -1144,7 +1144,7 @@ LIB_OBJS += credential.o LIB_OBJS += csum-file.o LIB_OBJS += ctype.o LIB_OBJS += date.o -LIB_OBJS += decorate.o +LIB_OBJS += revision/decorate.o LIB_OBJS += pack/delta-islands.o LIB_OBJS += diagnose.o LIB_OBJS += pack/diff-delta.o
@@ -1179,7 +1179,7 @@ LIB_OBJS += fsmonitor-settings.o LIB_OBJS += gettext.o LIB_OBJS += git-zlib.o LIB_OBJS += gpg-interface.o -LIB_OBJS += graph.o +LIB_OBJS += revision/graph.o LIB_OBJS += grep.o LIB_OBJS += odb/hash-lookup.o LIB_OBJS += odb/hash.o
@@ -1192,14 +1192,14 @@ LIB_OBJS += ident.o LIB_OBJS += json-writer.o LIB_OBJS += kwset.o LIB_OBJS += levenshtein.o -LIB_OBJS += line-log.o -LIB_OBJS += line-range.o +LIB_OBJS += revision/line-log.o +LIB_OBJS += revision/line-range.o LIB_OBJS += linear-assignment.o -LIB_OBJS += list-objects-filter-options.o -LIB_OBJS += list-objects-filter.o -LIB_OBJS += list-objects.o +LIB_OBJS += revision/list-objects-filter-options.o +LIB_OBJS += revision/list-objects-filter.o +LIB_OBJS += revision/list-objects.o LIB_OBJS += lockfile.o -LIB_OBJS += log-tree.o +LIB_OBJS += revision/log-tree.o LIB_OBJS += odb/loose.o LIB_OBJS += refs/ls-refs.o LIB_OBJS += mailinfo.o
@@ -1263,7 +1263,7 @@ LIB_OBJS += path-walk.o LIB_OBJS += pathspec.o LIB_OBJS += pkt-line.o LIB_OBJS += preload-index.o -LIB_OBJS += pretty.o +LIB_OBJS += revision/pretty.o LIB_OBJS += prio-queue.o LIB_OBJS += progress.o LIB_OBJS += promisor-remote.o
@@ -1317,14 +1317,14 @@ LIB_OBJS += repository.o LIB_OBJS += rerere.o LIB_OBJS += reset.o LIB_OBJS += resolve-undo.o -LIB_OBJS += revision.o +LIB_OBJS += revision/revision.o LIB_OBJS += run-command.o LIB_OBJS += send-pack.o LIB_OBJS += sequencer.o LIB_OBJS += serve.o LIB_OBJS += pack/server-info.o LIB_OBJS += setup.o -LIB_OBJS += shallow.o +LIB_OBJS += revision/shallow.o LIB_OBJS += sideband.o LIB_OBJS += sigchain.o LIB_OBJS += sparse-index.o
add-interactive.c +1 -1
@@ -10,7 +10,7 @@#include "preload-index.h" #include "read-cache-ll.h" #include "repository.h" -#include "revision.h" +#include "revision/revision.h" #include "refs/refs.h" #include "string-list.h" #include "lockfile.h"
archive.c +1 -1
@@ -11,7 +11,7 @@#include "hex.h" #include "odb/object-name.h" #include "path.h" -#include "pretty.h" +#include "revision/pretty.h" #include "setup.h" #include "refs/refs.h" #include "odb/odb.h"
attr.c +1 -1
@@ -21,7 +21,7 @@#include "quote.h" #include "read-cache-ll.h" #include "refs/refs.h" -#include "revision.h" +#include "revision/revision.h" #include "odb/odb.h" #include "setup.h" #include "thread-utils.h"
builtin/add.c +1 -1
@@ -22,7 +22,7 @@#include "preload-index.h" #include "diff/diff.h" #include "read-cache.h" -#include "revision.h" +#include "revision/revision.h" #include "strvec.h" #include "submodule.h" #include "add-interactive.h"
builtin/am.c +3 -3
@@ -30,9 +30,9 @@#include "odb/object-name.h" #include "preload-index.h" #include "sequencer.h" -#include "revision.h" +#include "revision/revision.h" #include "merge-ort-wrappers.h" -#include "log-tree.h" +#include "revision/log-tree.h" #include "notes-utils.h" #include "rerere.h" #include "mailinfo.h"
@@ -40,7 +40,7 @@#include "string-list.h" #include "pager.h" #include "path.h" -#include "pretty.h" +#include "revision/pretty.h" /** * Returns the length of the first line of msg.
builtin/backfill.c +1 -1
@@ -19,7 +19,7 @@#include "promisor-remote.h" #include "strmap.h" #include "string-list.h" -#include "revision.h" +#include "revision/revision.h" #include "trace2.h" #include "progress.h" #include "pack/packfile.h"
builtin/bisect.c +2 -2
@@ -8,7 +8,7 @@#include "hex.h" #include "odb/object-name.h" #include "parse-options.h" -#include "bisect.h" +#include "revision/bisect.h" #include "refs/refs.h" #include "strvec.h" #include "run-command.h"
@@ -16,7 +16,7 @@#include "path.h" #include "prompt.h" #include "quote.h" -#include "revision.h" +#include "revision/revision.h" static GIT_PATH_FUNC(git_path_bisect_terms, "BISECT_TERMS") static GIT_PATH_FUNC(git_path_bisect_ancestors_ok, "BISECT_ANCESTORS_OK")
builtin/blame.c +4 -4
@@ -15,7 +15,7 @@#include "hex.h" #include "odb/commit.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "quote.h" #include "string-list.h" #include "mailmap.h"
@@ -23,13 +23,13 @@#include "prio-queue.h" #include "utf8.h" #include "diff/userdiff.h" -#include "line-range.h" -#include "line-log.h" +#include "revision/line-range.h" +#include "revision/line-log.h" #include "progress.h" #include "odb/object-name.h" #include "odb/odb.h" #include "pager.h" -#include "blame.h" +#include "revision/blame.h" #include "refs/refs.h" #include "setup.h" #include "odb/tag.h"
builtin/branch.c +1 -1
@@ -28,7 +28,7 @@#include "refs/worktree.h" #include "help.h" #include "advice.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" static const char *const builtin_branch_usage[] = {N_ ("git branch [<options>] [-r | -a] [--merged] [--no-merged] [(--forked <branch>)...]" ),
builtin/cat-file.c +1 -1
@@ -15,7 +15,7 @@#include "gettext.h" #include "hex.h" #include "ident.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "parse-options.h" #include "diff/userdiff.h" #include "odb/oid-array.h"
builtin/checkout.c +1 -1
@@ -28,7 +28,7 @@#include "remote.h" #include "repo-settings.h" #include "resolve-undo.h" -#include "revision.h" +#include "revision/revision.h" #include "sequencer.h" #include "setup.h" #include "sparse-index.h"
builtin/clone.c +1 -1
@@ -43,7 +43,7 @@#include "pack/packfile.h" #include "path.h" #include "pkt-line.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "hook.h" #include "bundle.h" #include "bundle-uri.h"
builtin/commit.c +3 -3
@@ -21,7 +21,7 @@#include "odb/commit.h" #include "add-interactive.h" #include "gettext.h" -#include "revision.h" +#include "revision/revision.h" #include "wt-status.h" #include "run-command.h" #include "strbuf.h"
@@ -39,9 +39,9 @@#include "sparse-index.h" #include "mailmap.h" #include "help.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "pack/commit-graph.h" -#include "pretty.h" +#include "revision/pretty.h" #include "trailer.h" static const char *const builtin_commit_usage[] = {
builtin/describe.c +2 -2
@@ -13,14 +13,14 @@#include "odb/object-name.h" #include "parse-options.h" #include "read-cache-ll.h" -#include "revision.h" +#include "revision/revision.h" #include "diff/diff.h" #include "hashmap.h" #include "setup.h" #include "strvec.h" #include "run-command.h" #include "odb/odb.h" -#include "list-objects.h" +#include "revision/list-objects.h" #include "odb/commit-slab.h" #include "wildmatch.h" #include "prio-queue.h"
builtin/diff-files.c +1 -1
@@ -13,7 +13,7 @@#include "diff/diff-merges.h" #include "odb/commit.h" #include "preload-index.h" -#include "revision.h" +#include "revision/revision.h" static const char diff_files_usage[] ="git diff-files [-q] [-0 | -1 | -2 | -3 | -c | --cc] [<common-diff-options>] [<path>...]"
builtin/diff-index.c +1 -1
@@ -7,7 +7,7 @@#include "diff/diff-merges.h" #include "odb/commit.h" #include "preload-index.h" -#include "revision.h" +#include "revision/revision.h" #include "setup.h" static const char diff_cache_usage[] =
builtin/diff-pairs.c +1 -1
@@ -7,7 +7,7 @@#include "hex.h" #include "odb/object.h" #include "parse-options.h" -#include "revision.h" +#include "revision/revision.h" #include "strbuf.h" static unsigned parse_mode_or_die (const char *mode,const char **end)
builtin/diff-tree.c +2 -2
@@ -6,9 +6,9 @@#include "odb/commit.h" #include "gettext.h" #include "hex.h" -#include "log-tree.h" +#include "revision/log-tree.h" #include "read-cache-ll.h" -#include "revision.h" +#include "revision/revision.h" #include "odb/tmp-objdir.h" #include "odb/tree.h"
builtin/diff.c +2 -2
@@ -20,8 +20,8 @@#include "diff/diffcore.h" #include "preload-index.h" #include "read-cache-ll.h" -#include "revision.h" -#include "log-tree.h" +#include "revision/revision.h" +#include "revision/log-tree.h" #include "setup.h" #include "odb/oid-array.h" #include "odb/tree.h"
builtin/fast-export.c +3 -3
@@ -21,9 +21,9 @@#include "odb/tag.h" #include "diff/diff.h" #include "diff/diffcore.h" -#include "log-tree.h" -#include "revision.h" -#include "decorate.h" +#include "revision/log-tree.h" +#include "revision/revision.h" +#include "revision/decorate.h" #include "string-list.h" #include "utf8.h" #include "parse-options.h"
builtin/fast-import.c +1 -1
@@ -26,7 +26,7 @@#include "odb/object-name.h" #include "odb/odb.h" #include "mem-pool.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "khash.h" #include "date.h" #include "gpg-interface.h"
builtin/fetch.c +3 -3
@@ -32,12 +32,12 @@#include "pager.h" #include "path.h" #include "pkt-line.h" -#include "list-objects-filter-options.h" -#include "commit-reach.h" +#include "revision/list-objects-filter-options.h" +#include "revision/commit-reach.h" #include "branch.h" #include "promisor-remote.h" #include "pack/commit-graph.h" -#include "shallow.h" +#include "revision/shallow.h" #include "trace.h" #include "trace2.h" #include "bundle-uri.h"
builtin/gc.c +1 -1
@@ -34,7 +34,7 @@#include "path.h" #include "refs/reflog.h" #include "rerere.h" -#include "revision.h" +#include "revision/revision.h" #include "refs/refs.h" #include "remote.h" #include "exec-cmd.h"
builtin/history.c +2 -2
@@ -3,7 +3,7 @@#include "builtin.h" #include "cache-tree.h" #include "odb/commit.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "config.h" #include "editor.h" #include "environment.h"
@@ -18,7 +18,7 @@#include "refs/refs.h" #include "replay.h" #include "reset.h" -#include "revision.h" +#include "revision/revision.h" #include "sequencer.h" #include "strvec.h" #include "odb/tree.h"
builtin/last-modified.c +1 -1
@@ -17,7 +17,7 @@#include "prio-queue.h" #include "quote.h" #include "repository.h" -#include "revision.h" +#include "revision/revision.h" /* Remember to update object flag allocation in object.h */ #define PARENT1 (1u<<16)/* used instead of SEEN */
builtin/log.c +4 -4
@@ -23,8 +23,8 @@#include "diff/diff.h" #include "diff/diffcore.h" #include "diff/diff-merges.h" -#include "revision.h" -#include "log-tree.h" +#include "revision/revision.h" +#include "revision/log-tree.h" #include "odb/oid-array.h" #include "odb/oidset.h" #include "odb/tag.h"
@@ -35,7 +35,7 @@#include "remote.h" #include "string-list.h" #include "parse-options.h" -#include "line-log.h" +#include "revision/line-log.h" #include "branch.h" #include "version.h" #include "mailmap.h"
@@ -44,7 +44,7 @@#include "advice.h" #include "utf8.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "promisor-remote.h" #include "diff/range-diff.h" #include "odb/tmp-objdir.h"
builtin/merge-base.c +1 -1
@@ -7,7 +7,7 @@#include "hex.h" #include "odb/object-name.h" #include "parse-options.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" static int show_merge_base (struct commit **rev,size_t rev_nr,int show_all) {
builtin/merge-tree.c +1 -1
@@ -8,7 +8,7 @@#include "gettext.h" #include "hex.h" #include "odb/commit.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "merge-ort.h" #include "odb/object-name.h" #include "odb/odb.h"
builtin/merge.c +2 -2
@@ -31,7 +31,7 @@#include "odb/commit.h" #include "diff/diffcore.h" #include "path.h" -#include "revision.h" +#include "revision/revision.h" #include "unpack-trees.h" #include "cache-tree.h" #include "dir.h"
@@ -48,7 +48,7 @@#include "odb/tag.h" #include "alias.h" #include "branch.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "wt-status.h" #include "pack/commit-graph.h"
builtin/name-rev.c +2 -2
@@ -17,8 +17,8 @@#include "pack/commit-graph.h" #include "wildmatch.h" #include "mem-pool.h" -#include "pretty.h" -#include "revision.h" +#include "revision/pretty.h" +#include "revision/revision.h" #include "notes.h" #include "write-or-die.h"
builtin/notes.c +1 -1
@@ -19,7 +19,7 @@#include "odb/odb.h" #include "path.h" -#include "pretty.h" +#include "revision/pretty.h" #include "refs/refs.h" #include "exec-cmd.h" #include "run-command.h"
builtin/pack-objects.c +5 -5
@@ -16,9 +16,9 @@#include "csum-file.h" #include "odb/tree-walk.h" #include "diff/diff.h" -#include "revision.h" -#include "list-objects.h" -#include "list-objects-filter-options.h" +#include "revision/revision.h" +#include "revision/list-objects.h" +#include "revision/list-objects-filter-options.h" #include "pack/pack-objects.h" #include "progress.h" #include "refs/refs.h"
@@ -29,7 +29,7 @@#include "odb/oid-array.h" #include "strvec.h" #include "strmap.h" -#include "list.h" +#include "revision/list.h" #include "pack/packfile.h" #include "odb/object-file.h" #include "odb/object-file-convert.h"
@@ -39,7 +39,7 @@#include "dir.h" #include "pack/midx.h" #include "trace2.h" -#include "shallow.h" +#include "revision/shallow.h" #include "promisor-remote.h" #include "pack/pack-mtimes.h" #include "parse-options.h"
builtin/prune.c +2 -2
@@ -7,7 +7,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "revision.h" +#include "revision/revision.h" #include "pack/reachable.h" #include "parse-options.h" #include "path.h"
@@ -17,7 +17,7 @@#include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h" -#include "shallow.h" +#include "revision/shallow.h" static const char *const prune_usage[] = {N_ ("git prune [-n] [-v] [--progress] [--expire <time>] [--] [<head>...]" ),
builtin/pull.c +1 -1
@@ -29,7 +29,7 @@#include "submodule.h" #include "submodule-config.h" #include "wt-status.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "sequencer.h" /**
builtin/rebase.c +2 -2
@@ -27,8 +27,8 @@#include "odb/commit.h" #include "diff/diff.h" #include "wt-status.h" -#include "revision.h" -#include "commit-reach.h" +#include "revision/revision.h" +#include "revision/commit-reach.h" #include "rerere.h" #include "branch.h" #include "sequencer.h"
builtin/receive-pack.c +2 -2
@@ -4,7 +4,7 @@#include "builtin.h" #include "abspath.h" #include "odb/commit.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "config.h" #include "connect.h" #include "connected.h"
@@ -32,7 +32,7 @@#include "run-command.h" #include "pack/server-info.h" #include "setup.h" -#include "shallow.h" +#include "revision/shallow.h" #include "sideband.h" #include "sigchain.h" #include "string-list.h"
builtin/reflog.c +1 -1
@@ -5,7 +5,7 @@#include "gettext.h" #include "hex.h" #include "odb/odb.h" -#include "revision.h" +#include "revision/revision.h" #include "pack/reachable.h" #include "wildmatch.h" #include "refs/worktree.h"
builtin/remote.c +1 -1
@@ -18,7 +18,7 @@#include "refs/refspec.h" #include "odb/odb.h" #include "strvec.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "progress.h" static const char *const builtin_remote_usage[] = {
builtin/repack.c +1 -1
@@ -13,7 +13,7 @@#include "pack/prune-packed.h" #include "promisor-remote.h" #include "pack/repack.h" -#include "shallow.h" +#include "revision/shallow.h" #define ALL_INTO_ONE 1#define LOOSEN_UNREACHABLE 2
builtin/replay.c +1 -1
@@ -11,7 +11,7 @@#include "parse-options.h" #include "refs/refs.h" #include "replay.h" -#include "revision.h" +#include "revision/revision.h" enum ref_action_mode {REF_ACTION_UPDATE ,
builtin/repo.c +2 -2
@@ -13,11 +13,11 @@#include "quote.h" #include "refs/ref-filter.h" #include "refs/refs.h" -#include "revision.h" +#include "revision/revision.h" #include "setup.h" #include "strbuf.h" #include "string-list.h" -#include "shallow.h" +#include "revision/shallow.h" #include "odb/tree.h" #include "odb/tree-walk.h" #include "utf8.h"
builtin/reset.c +1 -1
@@ -19,7 +19,7 @@#include "hex.h" #include "lockfile.h" #include "odb/object.h" -#include "pretty.h" +#include "revision/pretty.h" #include "refs/refs.h" #include "diff/diff.h" #include "diff/diffcore.h"
builtin/rev-list.c +7 -7
@@ -8,24 +8,24 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "revision.h" -#include "list-objects.h" -#include "list-objects-filter-options.h" +#include "revision/revision.h" +#include "revision/list-objects.h" +#include "revision/list-objects-filter-options.h" #include "odb/object.h" #include "odb/object-name.h" #include "odb/object-file.h" #include "odb/odb.h" #include "pack/pack-bitmap.h" #include "parse-options.h" -#include "log-tree.h" -#include "graph.h" -#include "bisect.h" +#include "revision/log-tree.h" +#include "revision/graph.h" +#include "revision/bisect.h" #include "progress.h" #include "refs/reflog-walk.h" #include "odb/oidset.h" #include "odb/oidmap.h" #include "pack/packfile.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "quote.h" #include "strbuf.h"
builtin/rev-parse.c +4 -4
@@ -10,7 +10,7 @@#include "builtin.h" #include "abspath.h" -#include "bisect.h" +#include "revision/bisect.h" #include "config.h" #include "odb/commit.h" #include "environment.h"
@@ -26,12 +26,12 @@#include "read-cache-ll.h" #include "repo-settings.h" #include "repository.h" -#include "revision.h" +#include "revision/revision.h" #include "setup.h" #include "split-index.h" #include "submodule.h" -#include "commit-reach.h" -#include "shallow.h" +#include "revision/commit-reach.h" +#include "revision/shallow.h" #include "odb/object-file-convert.h" #define DO_REVS 1
builtin/revert.c +1 -1
@@ -6,7 +6,7 @@#include "diff/diff.h" #include "environment.h" #include "gettext.h" -#include "revision.h" +#include "revision/revision.h" #include "rerere.h" #include "sequencer.h" #include "branch.h"
builtin/shortlog.c +1 -1
@@ -7,7 +7,7 @@#include "environment.h" #include "gettext.h" #include "string-list.h" -#include "revision.h" +#include "revision/revision.h" #include "utf8.h" #include "mailmap.h" #include "setup.h"
builtin/show-branch.c +1 -1
@@ -7,7 +7,7 @@#include "gettext.h" #include "odb/hash.h" #include "hex.h" -#include "pretty.h" +#include "revision/pretty.h" #include "refs/refs.h" #include "color.h" #include "strvec.h"
builtin/stash.c +2 -2
@@ -22,10 +22,10 @@#include "read-cache.h" #include "repository.h" #include "rerere.h" -#include "revision.h" +#include "revision/revision.h" #include "setup.h" #include "sparse-index.h" -#include "log-tree.h" +#include "revision/log-tree.h" #include "diff/diffcore.h" #include "refs/reflog.h" #include "refs/reflog-walk.h"
builtin/submodule--helper.c +2 -2
@@ -23,7 +23,7 @@#include "remote.h" #include "refs/refs.h" #include "refs/refspec.h" -#include "revision.h" +#include "revision/revision.h" #include "diff/diffcore.h" #include "diff/diff.h" #include "odb/object-file.h"
@@ -32,7 +32,7 @@#include "odb/source.h" #include "advice.h" #include "branch.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "wildmatch.h" #include "strbuf.h" #include "url.h"
builtin/tag.c +1 -1
@@ -24,7 +24,7 @@#include "odb/tag.h" #include "parse-options.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "gpg-interface.h" #include "odb/oid-array.h" #include "column.h"
builtin/unpack-objects.c +1 -1
@@ -18,7 +18,7 @@#include "odb/replace-object.h" #include "strbuf.h" #include "progress.h" -#include "decorate.h" +#include "revision/decorate.h" #include "odb/fsck.h" #include "pack/packfile.h"
bundle.c +3 -3
@@ -12,12 +12,12 @@#include "odb/object.h" #include "odb/commit.h" #include "diff/diff.h" -#include "revision.h" -#include "list-objects.h" +#include "revision/revision.h" +#include "revision/list-objects.h" #include "run-command.h" #include "refs/refs.h" #include "strvec.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "connected.h" #include "write-or-die.h"
bundle.h +1 -1
@@ -3,7 +3,7 @@#include "strvec.h" #include "string-list.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" struct bundle_header {unsigned version;
chdir-notify.c +1 -1
@@ -1,7 +1,7 @@#include "git-compat-util.h" #include "abspath.h" #include "chdir-notify.h" -#include "list.h" +#include "revision/list.h" #include "path.h" #include "strbuf.h" #include "trace.h"
diff/combine-diff.c +2 -2
@@ -13,12 +13,12 @@#include "quote.h" #include "diff/xdiff-interface.h" #include "xdiff/xmacros.h" -#include "log-tree.h" +#include "revision/log-tree.h" #include "refs/refs.h" #include "odb/tree.h" #include "diff/userdiff.h" #include "odb/oid-array.h" -#include "revision.h" +#include "revision/revision.h" static int compare_paths (const struct combine_diff_path *one,const struct diff_filespec *two)
diff/diff-lib.c +2 -2
@@ -14,7 +14,7 @@#include "hex.h" #include "odb/object-name.h" #include "read-cache.h" -#include "revision.h" +#include "revision/revision.h" #include "cache-tree.h" #include "unpack-trees.h" #include "refs/refs.h"
@@ -24,7 +24,7 @@#include "trace.h" #include "dir.h" #include "fsmonitor.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" /* * diff-files
diff/diff-merges.c +1 -1
@@ -2,7 +2,7 @@#include "diff/diff-merges.h" #include "gettext.h" -#include "revision.h" +#include "revision/revision.h" typedef void (*diff_merges_setup_func_t )(struct rev_info *);static void set_separate (struct rev_info *revs);
diff/diff-no-index.c +1 -1
@@ -13,7 +13,7 @@#include "diff/diff.h" #include "diff/diffcore.h" #include "gettext.h" -#include "revision.h" +#include "revision/revision.h" #include "parse-options.h" #include "pathspec.h" #include "string-list.h"
diff/diff.c +2 -2
@@ -13,7 +13,7 @@#include "environment.h" #include "gettext.h" #include "tempfile.h" -#include "revision.h" +#include "revision/revision.h" #include "quote.h" #include "diff/diff.h" #include "diff/diffcore.h"
@@ -32,7 +32,7 @@#include "string-list.h" #include "strvec.h" #include "odb/tmp-objdir.h" -#include "graph.h" +#include "revision/graph.h" #include "odb/oid-array.h" #include "pack/packfile.h" #include "pager.h"
diff/diffcore-pickaxe.c +1 -1
@@ -11,7 +11,7 @@#include "diff/xdiff-interface.h" #include "kwset.h" #include "odb/oidset.h" -#include "pretty.h" +#include "revision/pretty.h" #include "quote.h" typedef int (*pickaxe_fn)(mmfile_t *one, mmfile_t *two,
diff/range-diff.c +2 -2
@@ -15,11 +15,11 @@#include "diff/diffcore.h" #include "odb/commit.h" #include "pager.h" -#include "pretty.h" +#include "revision/pretty.h" #include "repository.h" #include "diff/userdiff.h" #include "apply.h" -#include "revision.h" +#include "revision/revision.h" struct patch_util {/* For the search for an exact match */
fetch-pack.c +2 -2
@@ -30,8 +30,8 @@#include "connected.h" #include "fetch-negotiator.h" #include "odb/fsck.h" -#include "shallow.h" -#include "commit-reach.h" +#include "revision/shallow.h" +#include "revision/commit-reach.h" #include "pack/commit-graph.h" #include "sigchain.h" #include "mergesort.h"
fetch-pack.h +1 -1
@@ -3,7 +3,7 @@#include "string-list.h" #include "protocol.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "odb/oidset.h" struct oid_array ;
fmt-merge-msg.c +2 -2
@@ -10,12 +10,12 @@#include "diff/diff.h" #include "diff/diff-merges.h" #include "hex.h" -#include "revision.h" +#include "revision/revision.h" #include "odb/tag.h" #include "string-list.h" #include "branch.h" #include "fmt-merge-msg.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "gpg-interface.h" #include "wildmatch.h"
git.c +1 -1
@@ -14,7 +14,7 @@#include "odb/replace-object.h" #include "setup.h" #include "attr.h" -#include "shallow.h" +#include "revision/shallow.h" #include "trace.h" #include "trace2.h"
grep.c +1 -1
@@ -6,7 +6,7 @@#include "grep.h" #include "hex.h" #include "odb/odb.h" -#include "pretty.h" +#include "revision/pretty.h" #include "diff/userdiff.h" #include "diff/xdiff-interface.h" #include "diff/diff.h"
http-push.c +3 -3
@@ -9,9 +9,9 @@#include "odb/blob.h" #include "http.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "remote.h" -#include "list-objects.h" +#include "revision/list-objects.h" #include "setup.h" #include "sigchain.h" #include "strvec.h"
@@ -21,7 +21,7 @@#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/odb.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #ifdef EXPAT_NEEDS_XMLPARSE_H #include <xmlparse.h>
http-walker.c +1 -1
@@ -6,7 +6,7 @@#include "hex.h" #include "walker.h" #include "http.h" -#include "list.h" +#include "revision/list.h" #include "transport.h" #include "pack/packfile.h" #include "odb/object-file.h"
merge-ort.c +2 -2
@@ -25,7 +25,7 @@#include "attr.h" #include "cache-tree.h" #include "odb/commit.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "config.h" #include "diff/diff.h" #include "diff/diffcore.h"
@@ -45,7 +45,7 @@#include "promisor-remote.h" #include "read-cache-ll.h" #include "refs/refs.h" -#include "revision.h" +#include "revision/revision.h" #include "sparse-index.h" #include "strmap.h" #include "trace2.h"
meson.build +14 -14
@@ -319,8 +319,8 @@ libgit_sources = [ 'archive.c', 'attr.c', 'base85.c', - 'bisect.c', - 'blame.c', + 'revision/bisect.c', + 'revision/blame.c', 'odb/blob.c', 'pack/bloom.c', 'branch.c',
@@ -335,7 +335,7 @@ libgit_sources = [ 'column.c', 'diff/combine-diff.c', 'pack/commit-graph.c', - 'commit-reach.c', + 'revision/commit-reach.c', 'odb/commit.c', 'common-exit.c', 'common-init.c',
@@ -349,7 +349,7 @@ libgit_sources = [ 'csum-file.c', 'ctype.c', 'date.c', - 'decorate.c', + 'revision/decorate.c', 'pack/delta-islands.c', 'diagnose.c', 'pack/diff-delta.c',
@@ -384,7 +384,7 @@ libgit_sources = [ 'gettext.c', 'git-zlib.c', 'gpg-interface.c', - 'graph.c', + 'revision/graph.c', 'grep.c', 'odb/hash-lookup.c', 'odb/hash.c',
@@ -397,14 +397,14 @@ libgit_sources = [ 'json-writer.c', 'kwset.c', 'levenshtein.c', - 'line-log.c', - 'line-range.c', + 'revision/line-log.c', + 'revision/line-range.c', 'linear-assignment.c', - 'list-objects-filter-options.c', - 'list-objects-filter.c', - 'list-objects.c', + 'revision/list-objects-filter-options.c', + 'revision/list-objects-filter.c', + 'revision/list-objects.c', 'lockfile.c', - 'log-tree.c', + 'revision/log-tree.c', 'odb/loose.c', 'refs/ls-refs.c', 'mailinfo.c',
@@ -468,7 +468,7 @@ libgit_sources = [ 'pathspec.c', 'pkt-line.c', 'preload-index.c', - 'pretty.c', + 'revision/pretty.c', 'prio-queue.c', 'progress.c', 'promisor-remote.c',
@@ -522,14 +522,14 @@ libgit_sources = [ 'rerere.c', 'reset.c', 'resolve-undo.c', - 'revision.c', + 'revision/revision.c', 'run-command.c', 'send-pack.c', 'sequencer.c', 'serve.c', 'pack/server-info.c', 'setup.c', - 'shallow.c', + 'revision/shallow.c', 'sideband.c', 'sigchain.c', 'sparse-index.c',
notes-cache.c +1 -1
@@ -4,7 +4,7 @@#include "notes-cache.h" #include "odb/object-file.h" #include "odb/odb.h" -#include "pretty.h" +#include "revision/pretty.h" #include "repository.h" #include "odb/commit.h" #include "refs/refs.h"
notes-merge.c +1 -1
@@ -22,7 +22,7 @@#include "strbuf.h" #include "trace.h" #include "notes-utils.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" struct notes_merge_pair {struct object_id obj, base, local, remote;
odb/commit.c +3 -3
@@ -12,7 +12,7 @@#include "odb/odb.h" #include "utf8.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "notes.h" #include "odb/alloc.h" #include "gpg-interface.h"
@@ -23,9 +23,9 @@#include "wt-status.h" #include "advice.h" #include "refs/refs.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "setup.h" -#include "shallow.h" +#include "revision/shallow.h" #include "odb/tree.h" #include "hook.h" #include "parse.h"
odb/object-name.c +2 -2
@@ -17,13 +17,13 @@#include "dir.h" #include "odb/odb.h" #include "odb/oid-array.h" -#include "pretty.h" +#include "revision/pretty.h" #include "read-cache-ll.h" #include "repo-settings.h" #include "repository.h" #include "setup.h" #include "pack/midx.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "date.h" #include "odb/object-file-convert.h" #include "prio-queue.h"
odb/source-packed.c +1 -1
@@ -3,7 +3,7 @@#include "chdir-notify.h" #include "dir.h" #include "git-zlib.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "mergesort.h" #include "pack/midx.h" #include "odb/source-packed.h"
pack/commit-graph.c +1 -1
@@ -22,7 +22,7 @@#include "progress.h" #include "pack/bloom.h" #include "odb/commit-slab.h" -#include "shallow.h" +#include "revision/shallow.h" #include "json-writer.h" #include "trace2.h" #include "odb/tree.h"
pack/midx-write.c +2 -2
@@ -13,8 +13,8 @@#include "pack/chunk-format.h" #include "pack/pack-bitmap.h" #include "refs/refs.h" -#include "revision.h" -#include "list-objects.h" +#include "revision/revision.h" +#include "revision/list-objects.h" #include "path.h" #include "pack/pack-revindex.h"
pack/pack-bitmap-write.c +2 -2
@@ -7,14 +7,14 @@#include "odb/odb.h" #include "odb/commit.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "progress.h" #include "pack/pack.h" #include "pack/pack-bitmap.h" #include "odb/hash-lookup.h" #include "pack/pack-objects.h" #include "path.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "prio-queue.h" #include "trace2.h" #include "odb/tree.h"
pack/pack-bitmap.c +3 -3
@@ -7,9 +7,9 @@#include "strbuf.h" #include "odb/tag.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "progress.h" -#include "list-objects.h" +#include "revision/list-objects.h" #include "pack/pack.h" #include "pack/pack-bitmap.h" #include "pack/pack-revindex.h"
@@ -18,7 +18,7 @@#include "repository.h" #include "trace2.h" #include "odb/odb.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "pack/midx.h" #include "config.h" #include "pack/pseudo-merge.h"
pack/packfile.c +1 -1
@@ -4,7 +4,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "list.h" +#include "revision/list.h" #include "pack/pack.h" #include "repository.h" #include "dir.h"
pack/packfile.h +1 -1
@@ -1,7 +1,7 @@#ifndef PACKFILE_H #define PACKFILE_H -#include "list.h" +#include "revision/list.h" #include "odb/object.h" #include "odb/odb.h" #include "odb/source-files.h"
pack/reachable.c +2 -2
@@ -7,11 +7,11 @@#include "odb/commit.h" #include "odb/blob.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "pack/reachable.h" #include "cache-tree.h" #include "progress.h" -#include "list-objects.h" +#include "revision/list-objects.h" #include "pack/packfile.h" #include "refs/worktree.h" #include "odb/object-file.h"
pack/repack.h +1 -1
@@ -1,7 +1,7 @@#ifndef REPACK_H #define REPACK_H -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "string-list.h" struct pack_objects_args {
path-walk.c +3 -3
@@ -8,8 +8,8 @@#include "dir.h" #include "hashmap.h" #include "hex.h" -#include "list-objects.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects.h" +#include "revision/list-objects-filter-options.h" #include "odb/object-name.h" #include "odb/odb.h" #include "odb/object.h"
@@ -17,7 +17,7 @@#include "path.h" #include "prio-queue.h" #include "repository.h" -#include "revision.h" +#include "revision/revision.h" #include "string-list.h" #include "strmap.h" #include "odb/tag.h"
read-cache.c +1 -1
@@ -34,7 +34,7 @@#include "read-cache.h" #include "repository.h" #include "resolve-undo.h" -#include "revision.h" +#include "revision/revision.h" #include "strbuf.h" #include "trace2.h" #include "varint.h"
refs/files-backend.c +1 -1
@@ -25,7 +25,7 @@#include "refs/worktree.h" #include "../wrapper.h" #include "../write-or-die.h" -#include "../revision.h" +#include "revision/revision.h" #include <wildmatch.h> /* So that we can drop `USE_THE_REPOSITORY_VARIABLE`. */
refs/pack-refs.c +1 -1
@@ -4,7 +4,7 @@#include "refs/pack-refs.h" #include "parse-options.h" #include "refs/refs.h" -#include "revision.h" +#include "revision/revision.h" int pack_refs_core(int argc, const char **argv,
refs/ref-filter.c +2 -2
@@ -24,13 +24,13 @@#include "odb/tag.h" #include "quote.h" #include "refs/ref-filter.h" -#include "revision.h" +#include "revision/revision.h" #include "utf8.h" #include "versioncmp.h" #include "trailer.h" #include "wt-status.h" #include "odb/commit-slab.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "refs/worktree.h" #include "hashmap.h"
refs/ref-filter.h +1 -1
@@ -6,7 +6,7 @@#include "odb/commit.h" #include "string-list.h" #include "strvec.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" /* Quoting styles */ #define QUOTE_NONE 0
refs/reflog-walk.c +1 -1
@@ -5,7 +5,7 @@#include "refs/refs.h" #include "diff/diff.h" #include "repository.h" -#include "revision.h" +#include "revision/revision.h" #include "string-list.h" #include "refs/reflog-walk.h"
refs/reflog.c +1 -1
@@ -9,7 +9,7 @@#include "odb/odb.h" #include "refs/reflog.h" #include "refs/refs.h" -#include "revision.h" +#include "revision/revision.h" #include "odb/tree.h" #include "odb/tree-walk.h" #include "wildmatch.h"
remote.c +2 -2
@@ -17,12 +17,12 @@#include "path.h" #include "odb/commit.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "dir.h" #include "setup.h" #include "string-list.h" #include "strvec.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "advice.h" #include "connect.h" #include "parse-options.h"
replay.c +1 -1
@@ -7,7 +7,7 @@#include "odb/object-name.h" #include "refs/refs.h" #include "replay.h" -#include "revision.h" +#include "revision/revision.h" #include "sequencer.h" #include "strmap.h" #include "odb/tree.h"
revision/bisect.c renamed from bisect.c +5 -5
@@ -8,17 +8,17 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "revision.h" +#include "revision/revision.h" #include "refs/refs.h" -#include "list-objects.h" +#include "revision/list-objects.h" #include "quote.h" #include "run-command.h" -#include "log-tree.h" -#include "bisect.h" +#include "revision/log-tree.h" +#include "revision/bisect.h" #include "odb/oid-array.h" #include "strvec.h" #include "odb/commit-slab.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "odb/object-name.h" #include "odb/odb.h" #include "path.h"
revision/bisect.h renamed from bisect.h +0 -0
revision/blame.c renamed from blame.c +2 -2
@@ -14,11 +14,11 @@#include "hex.h" #include "path.h" #include "read-cache.h" -#include "revision.h" +#include "revision/revision.h" #include "setup.h" #include "odb/tag.h" #include "trace2.h" -#include "blame.h" +#include "revision/blame.h" #include "odb/alloc.h" #include "odb/commit-slab.h" #include "pack/bloom.h"
revision/blame.h renamed from blame.h +0 -0
revision/commit-reach.c renamed from commit-reach.c +3 -3
@@ -3,13 +3,13 @@#include "git-compat-util.h" #include "odb/commit.h" #include "pack/commit-graph.h" -#include "decorate.h" +#include "revision/decorate.h" #include "hex.h" #include "prio-queue.h" #include "refs/ref-filter.h" -#include "revision.h" +#include "revision/revision.h" #include "odb/tag.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "ewah/ewok.h" /* Remember to update object flag allocation in object.h */
revision/commit-reach.h renamed from commit-reach.h +0 -0
revision/decorate.c renamed from decorate.c +1 -1
@@ -5,7 +5,7 @@#include "git-compat-util.h" #include "odb/object.h" -#include "decorate.h" +#include "revision/decorate.h" static unsigned int hash_obj (const struct object *obj,unsigned int n) {
revision/decorate.h renamed from decorate.h +0 -0
revision/graph.c renamed from graph.c +2 -2
@@ -5,8 +5,8 @@#include "config.h" #include "odb/commit.h" #include "color.h" -#include "graph.h" -#include "revision.h" +#include "revision/graph.h" +#include "revision/revision.h" #include "strvec.h" /* Internal API */
revision/graph.h renamed from graph.h +0 -0
revision/line-log.c renamed from line-log.c +4 -4
@@ -2,18 +2,18 @@#include "git-compat-util.h" #include "diff/diffcore.h" -#include "line-range.h" +#include "revision/line-range.h" #include "hex.h" #include "odb/tag.h" #include "odb/tree.h" #include "diff/diff.h" #include "odb/commit.h" -#include "decorate.h" +#include "revision/decorate.h" #include "repository.h" -#include "revision.h" +#include "revision/revision.h" #include "diff/xdiff-interface.h" #include "strbuf.h" -#include "line-log.h" +#include "revision/line-log.h" #include "setup.h" #include "strvec.h" #include "pack/bloom.h"
revision/line-log.h renamed from line-log.h +0 -0
revision/line-range.c renamed from line-range.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "line-range.h" +#include "revision/line-range.h" #include "diff/xdiff-interface.h" #include "diff/userdiff.h"
revision/line-range.h renamed from line-range.h +0 -0
revision/list-objects-filter-options.c renamed from list-objects-filter-options.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "config.h" #include "gettext.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "promisor-remote.h" #include "trace.h" #include "url.h"
revision/list-objects-filter-options.h renamed from list-objects-filter-options.h +0 -0
revision/list-objects-filter.c renamed from list-objects-filter.c +3 -3
@@ -6,9 +6,9 @@#include "hex.h" #include "odb/commit.h" #include "diff/diff.h" -#include "revision.h" -#include "list-objects-filter.h" -#include "list-objects-filter-options.h" +#include "revision/revision.h" +#include "revision/list-objects-filter.h" +#include "revision/list-objects-filter-options.h" #include "odb/oidmap.h" #include "odb/oidset.h" #include "odb/object-name.h"
revision/list-objects-filter.h renamed from list-objects-filter.h +0 -0
revision/list-objects.c renamed from list-objects.c +4 -4
@@ -9,10 +9,10 @@#include "odb/blob.h" #include "diff/diff.h" #include "odb/tree-walk.h" -#include "revision.h" -#include "list-objects.h" -#include "list-objects-filter.h" -#include "list-objects-filter-options.h" +#include "revision/revision.h" +#include "revision/list-objects.h" +#include "revision/list-objects-filter.h" +#include "revision/list-objects-filter-options.h" #include "pack/packfile.h" #include "odb/odb.h" #include "trace.h"
revision/list-objects.h renamed from list-objects.h +0 -0
revision/list.h renamed from list.h +0 -0
revision/log-tree.c renamed from log-tree.c +5 -5
@@ -2,7 +2,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "odb/commit-slab.h" #include "config.h" #include "diff/diff.h"
@@ -15,18 +15,18 @@#include "odb/tmp-objdir.h" #include "odb/commit.h" #include "odb/tag.h" -#include "graph.h" -#include "log-tree.h" +#include "revision/graph.h" +#include "revision/log-tree.h" #include "merge-ort.h" #include "refs/reflog-walk.h" #include "refs/refs.h" #include "odb/replace-object.h" -#include "revision.h" +#include "revision/revision.h" #include "string-list.h" #include "color.h" #include "gpg-interface.h" #include "sequencer.h" -#include "line-log.h" +#include "revision/line-log.h" #include "help.h" #include "diff/range-diff.h" #include "strmap.h"
revision/log-tree.h renamed from log-tree.h +0 -0
revision/pretty.c renamed from pretty.c +2 -2
@@ -11,10 +11,10 @@#include "utf8.h" #include "diff/diff.h" #include "pager.h" -#include "revision.h" +#include "revision/revision.h" #include "string-list.h" #include "mailmap.h" -#include "log-tree.h" +#include "revision/log-tree.h" #include "notes.h" #include "color.h" #include "refs/reflog-walk.h"
revision/pretty.h renamed from pretty.h +0 -0
revision/revision.c renamed from revision.c +8 -8
@@ -17,20 +17,20 @@#include "diff/diff.h" #include "diff/diff-merges.h" #include "refs/refs.h" -#include "revision.h" +#include "revision/revision.h" #include "repository.h" -#include "graph.h" +#include "revision/graph.h" #include "grep.h" #include "refs/reflog-walk.h" #include "diff/patch-ids.h" -#include "decorate.h" +#include "revision/decorate.h" #include "string-list.h" -#include "line-log.h" -#include "log-tree.h" +#include "revision/line-log.h" +#include "revision/log-tree.h" #include "mailmap.h" #include "odb/commit-slab.h" #include "cache-tree.h" -#include "bisect.h" +#include "revision/bisect.h" #include "pack/packfile.h" #include "refs/worktree.h" #include "path.h"
@@ -39,14 +39,14 @@#include "sparse-index.h" #include "strvec.h" #include "trace2.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "pack/commit-graph.h" #include "prio-queue.h" #include "hashmap.h" #include "utf8.h" #include "pack/bloom.h" #include "json-writer.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "resolve-undo.h" #include "parse-options.h" #include "wildmatch.h"
revision/revision.h renamed from revision.h +3 -3
@@ -6,12 +6,12 @@#include "notes.h" #include "odb/object-name.h" #include "odb/oidset.h" -#include "pretty.h" +#include "revision/pretty.h" #include "diff/diff.h" #include "odb/commit-slab-decl.h" -#include "decorate.h" +#include "revision/decorate.h" #include "ident.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "prio-queue.h" #include "strvec.h"
revision/shallow.c renamed from shallow.c +4 -4
@@ -13,11 +13,11 @@#include "odb/oid-array.h" #include "path.h" #include "diff/diff.h" -#include "revision.h" +#include "revision/revision.h" #include "odb/commit-slab.h" -#include "list-objects.h" -#include "commit-reach.h" -#include "shallow.h" +#include "revision/list-objects.h" +#include "revision/commit-reach.h" +#include "revision/shallow.h" #include "statinfo.h" #include "trace.h"
revision/shallow.h renamed from shallow.h +0 -0
send-pack.c +1 -1
@@ -15,7 +15,7 @@#include "version.h" #include "odb/oid-array.h" #include "gpg-interface.h" -#include "shallow.h" +#include "revision/shallow.h" #include "parse-options.h" #include "trace2.h" #include "write-or-die.h"
sequencer.c +3 -3
@@ -24,7 +24,7 @@#include "cache-tree.h" #include "diff/diff.h" #include "path.h" -#include "revision.h" +#include "revision/revision.h" #include "rerere.h" #include "merge.h" #include "merge-ort.h"
@@ -34,7 +34,7 @@#include "strvec.h" #include "quote.h" #include "trailer.h" -#include "log-tree.h" +#include "revision/log-tree.h" #include "wt-status.h" #include "hashmap.h" #include "notes-utils.h"
@@ -44,7 +44,7 @@#include "odb/oidset.h" #include "odb/commit-slab.h" #include "alias.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "rebase-interactive.h" #include "reset.h" #include "branch.h"
setup.c +1 -1
@@ -14,7 +14,7 @@#include "config.h" #include "dir.h" #include "setup.h" -#include "shallow.h" +#include "revision/shallow.h" #include "string-list.h" #include "strvec.h" #include "chdir-notify.h"
submodule.c +2 -2
@@ -13,7 +13,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "revision.h" +#include "revision/revision.h" #include "run-command.h" #include "diff/diffcore.h" #include "refs/refs.h"
@@ -28,7 +28,7 @@#include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "read-cache-ll.h" #include "setup.h" #include "advice.h"
t/helper/test-path-walk.c +3 -3
@@ -4,11 +4,11 @@#include "dir.h" #include "environment.h" #include "hex.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "odb/object-name.h" #include "odb/object.h" -#include "pretty.h" -#include "revision.h" +#include "revision/pretty.h" +#include "revision/revision.h" #include "setup.h" #include "parse-options.h" #include "strbuf.h"
t/helper/test-reach.c +1 -1
@@ -2,7 +2,7 @@#include "test-tool.h" #include "odb/commit.h" -#include "commit-reach.h" +#include "revision/commit-reach.h" #include "gettext.h" #include "hex.h" #include "odb/object-name.h"
t/helper/test-ref-store.c +1 -1
@@ -9,7 +9,7 @@#include "path.h" #include "repository.h" #include "strbuf.h" -#include "revision.h" +#include "revision/revision.h" struct flag_definition {const char *name;
t/helper/test-revision-walking.c +2 -2
@@ -13,10 +13,10 @@#include "test-tool.h" #include "odb/commit.h" #include "diff/diff.h" -#include "line-log.h" +#include "revision/line-log.h" #include "odb/object-name.h" #include "repository.h" -#include "revision.h" +#include "revision/revision.h" #include "setup.h" #include "string-list.h"
t/unit-tests/u-example-decorate.c +1 -1
@@ -2,7 +2,7 @@#include "unit-test.h" #include "odb/object.h" -#include "decorate.h" +#include "revision/decorate.h" #include "repository.h" struct test_vars {
t/unit-tests/u-list-objects-filter-options.c +1 -1
@@ -1,5 +1,5 @@#include "unit-test.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "strbuf.h" /* Helper to test gently_parse_list_objects_filter() */
tempfile.h +1 -1
@@ -1,7 +1,7 @@#ifndef TEMPFILE_H #define TEMPFILE_H -#include "list.h" +#include "revision/list.h" #include "strbuf.h" struct repository ;
trailer.c +1 -1
@@ -9,7 +9,7 @@#include "odb/commit.h" #include "strvec.h" #include "trailer.h" -#include "list.h" +#include "revision/list.h" #include "tempfile.h" /*
trailer.h +1 -1
@@ -1,7 +1,7 @@#ifndef TRAILER_H #define TRAILER_H -#include "list.h" +#include "revision/list.h" #include "strbuf.h" struct trailer_block ;
transport.h +1 -1
@@ -3,7 +3,7 @@#include "run-command.h" #include "remote.h" -#include "list-objects-filter-options.h" +#include "revision/list-objects-filter-options.h" #include "string-list.h" #include "connect.h"
upload-pack.c +4 -4
@@ -15,8 +15,8 @@#include "odb/object.h" #include "odb/commit.h" #include "diff/diff.h" -#include "revision.h" -#include "list-objects-filter-options.h" +#include "revision/revision.h" +#include "revision/list-objects-filter-options.h" #include "run-command.h" #include "connect.h" #include "sigchain.h"
@@ -27,8 +27,8 @@#include "protocol.h" #include "upload-pack.h" #include "pack/commit-graph.h" -#include "commit-reach.h" -#include "shallow.h" +#include "revision/commit-reach.h" +#include "revision/shallow.h" #include "trace.h" #include "write-or-die.h" #include "json-writer.h"
wt-status.c +1 -1
@@ -14,7 +14,7 @@#include "hex.h" #include "odb/object-name.h" #include "path.h" -#include "revision.h" +#include "revision/revision.h" #include "diff/diffcore.h" #include "quote.h" #include "repository.h"
Signature · 1 line
2.54.0
RFC PATCH 12/14 index: gather the index sources under index/
In reply to Michael MontalboMove the 20 index C sources and 24 headers into index/ as renames. Repoint every reference to their old paths to the new ones: the #include lines across the tree, the Makefile and meson.build build entries, and the tutorial #include examples.
--- .gitorganize | 88 +++++++++---------- Documentation/MyFirstContribution.adoc | 2 +- Makefile | 42 ++++----- add-interactive.c | 6 +- add-patch.c | 4 +- apply.c | 10 +-- archive.c | 2 +- archive.h | 2 +- attr.c | 4 +- builtin/add.c | 8 +- builtin/am.c | 8 +- builtin/backfill.c | 2 +- builtin/check-ignore.c | 4 +- builtin/checkout--worker.c | 6 +- builtin/checkout-index.c | 10 +-- builtin/checkout.c | 24 ++--- builtin/clean.c | 6 +- builtin/clone.c | 6 +- builtin/commit.c | 14 +-- builtin/count-objects.c | 2 +- builtin/describe.c | 2 +- builtin/diff-files.c | 2 +- builtin/diff-index.c | 2 +- builtin/diff-tree.c | 2 +- builtin/diff.c | 4 +- builtin/difftool.c | 8 +- builtin/fast-import.c | 4 +- builtin/fsck.c | 8 +- builtin/fsmonitor--daemon.c | 10 +-- builtin/gc.c | 2 +- builtin/grep.c | 6 +- builtin/history.c | 8 +- builtin/ls-files.c | 10 +-- builtin/ls-tree.c | 2 +- builtin/merge-index.c | 4 +- builtin/merge.c | 10 +-- builtin/mv.c | 12 +-- builtin/pack-objects.c | 2 +- builtin/prune.c | 2 +- builtin/pull.c | 6 +- builtin/push.c | 2 +- builtin/read-tree.c | 8 +- builtin/rebase.c | 6 +- builtin/rerere.c | 2 +- builtin/reset.c | 8 +- builtin/rev-parse.c | 4 +- builtin/rm.c | 8 +- builtin/show-branch.c | 2 +- builtin/sparse-checkout.c | 8 +- builtin/stash.c | 14 +-- builtin/submodule--helper.c | 10 +-- builtin/update-index.c | 18 ++-- builtin/worktree.c | 6 +- builtin/write-tree.c | 2 +- compat/fsmonitor/fsm-health-darwin.c | 4 +- compat/fsmonitor/fsm-health-linux.c | 4 +- compat/fsmonitor/fsm-health-win32.c | 4 +- compat/fsmonitor/fsm-ipc-unix.c | 6 +- compat/fsmonitor/fsm-ipc-win32.c | 2 +- compat/fsmonitor/fsm-listen-darwin.c | 6 +- compat/fsmonitor/fsm-listen-linux.c | 8 +- compat/fsmonitor/fsm-listen-win32.c | 4 +- compat/fsmonitor/fsm-path-utils-darwin.c | 4 +- compat/fsmonitor/fsm-path-utils-linux.c | 4 +- compat/fsmonitor/fsm-path-utils-win32.c | 4 +- compat/fsmonitor/fsm-settings-unix.c | 8 +- compat/fsmonitor/fsm-settings-win32.c | 6 +- compat/mingw.c | 4 +- config.c | 2 +- convert.c | 2 +- diagnose.c | 2 +- diff/diff-lib.c | 12 +-- diff/diff-no-index.c | 4 +- diff/diff.c | 4 +- diff/diff.h | 2 +- diff/tree-diff.c | 2 +- git.c | 2 +- gpg-interface.c | 2 +- help.c | 2 +- cache-tree.c => index/cache-tree.c | 4 +- cache-tree.h => index/cache-tree.h | 0 checkout.c => index/checkout.c | 2 +- checkout.h => index/checkout.h | 0 dir-iterator.c => index/dir-iterator.c | 4 +- dir-iterator.h => index/dir-iterator.h | 0 dir.c => index/dir.c | 14 +-- dir.h => index/dir.h | 4 +- entry.c => index/entry.c | 14 +-- entry.h => index/entry.h | 0 .../fsmonitor--daemon.h | 2 +- fsmonitor-ipc.c => index/fsmonitor-ipc.c | 2 +- fsmonitor-ipc.h => index/fsmonitor-ipc.h | 0 fsmonitor-ll.h => index/fsmonitor-ll.h | 0 .../fsmonitor-path-utils.h | 0 .../fsmonitor-settings.c | 6 +- .../fsmonitor-settings.h | 0 fsmonitor.c => index/fsmonitor.c | 8 +- fsmonitor.h => index/fsmonitor.h | 8 +- name-hash.c => index/name-hash.c | 6 +- name-hash.h => index/name-hash.h | 0 .../parallel-checkout.c | 8 +- .../parallel-checkout.h | 0 pathspec.c => index/pathspec.c | 8 +- pathspec.h => index/pathspec.h | 0 preload-index.c => index/preload-index.c | 12 +-- preload-index.h => index/preload-index.h | 0 read-cache-ll.h => index/read-cache-ll.h | 2 +- read-cache.c => index/read-cache.c | 20 ++--- read-cache.h => index/read-cache.h | 4 +- resolve-undo.c => index/resolve-undo.c | 8 +- resolve-undo.h => index/resolve-undo.h | 0 sparse-index.c => index/sparse-index.c | 14 +-- sparse-index.h => index/sparse-index.h | 0 split-index.c => index/split-index.c | 4 +- split-index.h => index/split-index.h | 0 statinfo.c => index/statinfo.c | 2 +- statinfo.h => index/statinfo.h | 0 symlinks.c => index/symlinks.c | 2 +- symlinks.h => index/symlinks.h | 0 unpack-trees.c => index/unpack-trees.c | 22 ++--- unpack-trees.h => index/unpack-trees.h | 2 +- wt-status.c => index/wt-status.c | 8 +- wt-status.h => index/wt-status.h | 2 +- merge-ort-wrappers.c | 2 +- merge-ort.c | 12 +-- merge.c | 4 +- meson.build | 40 ++++----- notes-merge.c | 2 +- odb/commit.c | 2 +- odb/fsck.c | 2 +- odb/hash-lookup.c | 2 +- odb/object-file.c | 4 +- odb/object-name.c | 4 +- odb/object.c | 2 +- odb/odb.c | 2 +- odb/source-packed.c | 2 +- odb/tmp-objdir.c | 2 +- odb/tree-walk.c | 6 +- organize/gitorganize-format.c | 2 +- organize/organize.c | 6 +- pack/midx.c | 2 +- pack/packfile.c | 2 +- pack/reachable.c | 2 +- pack/repack.c | 2 +- pack/server-info.c | 2 +- path-walk.c | 2 +- path.c | 2 +- rebase-interactive.c | 2 +- refs/files-backend.c | 4 +- refs/packed-backend.c | 4 +- refs/ref-filter.c | 2 +- refs/reftable-backend.c | 2 +- refs/worktree.c | 4 +- remote.c | 2 +- repository.c | 4 +- rerere.c | 8 +- reset.c | 4 +- revision/bisect.c | 2 +- revision/blame.c | 4 +- revision/list-objects-filter.c | 2 +- revision/revision.c | 8 +- revision/shallow.c | 2 +- run-command.c | 2 +- scalar.c | 6 +- sequencer.c | 10 +-- sequencer.h | 2 +- setup.c | 2 +- submodule-config.c | 2 +- submodule.c | 4 +- t/helper/test-cache-tree.c | 4 +- t/helper/test-dir-iterator.c | 2 +- t/helper/test-dump-cache-tree.c | 4 +- t/helper/test-dump-fsmonitor.c | 2 +- t/helper/test-dump-split-index.c | 4 +- t/helper/test-dump-untracked-cache.c | 4 +- t/helper/test-fsmonitor-client.c | 4 +- t/helper/test-lazy-init-name-hash.c | 4 +- t/helper/test-parse-pathspec-file.c | 2 +- t/helper/test-path-utils.c | 2 +- t/helper/test-path-walk.c | 2 +- t/helper/test-read-cache.c | 2 +- t/helper/test-scrap-cache-tree.c | 4 +- t/helper/test-write-cache.c | 2 +- t/unit-tests/test-lib.c | 2 +- t/unit-tests/u-dir.c | 2 +- t/unit-tests/u-reftable-stack.c | 2 +- t/unit-tests/u-strcmp-offset.c | 2 +- trace2/tr2_sysenv.c | 2 +- 188 files changed, 497 insertions(+), 497 deletions(-) rename cache-tree.c => index/cache-tree.c (99%) rename cache-tree.h => index/cache-tree.h (100%) rename checkout.c => index/checkout.c (98%) rename checkout.h => index/checkout.h (100%) rename dir-iterator.c => index/dir-iterator.c (99%) rename dir-iterator.h => index/dir-iterator.h (100%) rename dir.c => index/dir.c (99%) rename dir.h => index/dir.h (99%) rename entry.c => index/entry.c (98%) rename entry.h => index/entry.h (100%) rename fsmonitor--daemon.h => index/fsmonitor--daemon.h (99%) rename fsmonitor-ipc.c => index/fsmonitor-ipc.c (99%) rename fsmonitor-ipc.h => index/fsmonitor-ipc.h (100%) rename fsmonitor-ll.h => index/fsmonitor-ll.h (100%) rename fsmonitor-path-utils.h => index/fsmonitor-path-utils.h (100%) rename fsmonitor-settings.c => index/fsmonitor-settings.c (98%) rename fsmonitor-settings.h => index/fsmonitor-settings.h (100%) rename fsmonitor.c => index/fsmonitor.c (99%) rename fsmonitor.h => index/fsmonitor.h (95%) rename name-hash.c => index/name-hash.c (99%) rename name-hash.h => index/name-hash.h (100%) rename parallel-checkout.c => index/parallel-checkout.c (99%) rename parallel-checkout.h => index/parallel-checkout.h (100%) rename pathspec.c => index/pathspec.c (99%) rename pathspec.h => index/pathspec.h (100%) rename preload-index.c => index/preload-index.c (96%) rename preload-index.h => index/preload-index.h (100%) rename read-cache-ll.h => index/read-cache-ll.h (99%) rename read-cache.c => index/read-cache.c (99%) rename read-cache.h => index/read-cache.h (95%) rename resolve-undo.c => index/resolve-undo.c (97%) rename resolve-undo.h => index/resolve-undo.h (100%) rename sparse-index.c => index/sparse-index.c (99%) rename sparse-index.h => index/sparse-index.h (100%) rename split-index.c => index/split-index.c (99%) rename split-index.h => index/split-index.h (100%) rename statinfo.c => index/statinfo.c (99%) rename statinfo.h => index/statinfo.h (100%) rename symlinks.c => index/symlinks.c (99%) rename symlinks.h => index/symlinks.h (100%) rename unpack-trees.c => index/unpack-trees.c (99%) rename unpack-trees.h => index/unpack-trees.h (99%) rename wt-status.c => index/wt-status.c (99%) rename wt-status.h => index/wt-status.h (99%)
.gitorganize +44 -44
@@ -48,12 +48,8 @@ bundle-uri.c component=transport role=lib prefix=bundle-uri includes=transport:5 bundle-uri.h component=transport role=header prefix=bundle-uri cochange=transport:14 bundle.c component=transport role=lib prefix=bundle includes=odb:3,revision:3,setup:2,transport:2,diff:1 cochange=transport:63,odb:24,revision:21,refs:17,pack:10 bundle.h component=transport role=header prefix=bundle includes=revision:1 cochange=transport:37,revision:5 -cache-tree.c component=index role=lib prefix=cache-tree includes=odb:5,index:2,setup:1,transport:1 cochange=index:94,odb:69,revision:27,transport:21,diff:20 -cache-tree.h component=index role=header prefix=cache-tree includes=odb:2 cochange=index:42,diff:4,revision:4,odb:3,refs:1 chdir-notify.c component=? role=lib prefix=chdir-notify includes=revision:1 cochange=index:2,archive:1,merge:1,revision:1 chdir-notify.h component=? role=public prefix=chdir-notify -checkout.c component=index role=lib prefix=checkout includes=setup:2,index:1,odb:1,refs:1,transport:1 cochange=transport:16,refs:6,setup:5,index:3,odb:2 -checkout.h component=index role=header prefix=checkout includes=odb:1 cochange=index:4,diff:1,odb:1,refs:1,revision:1 color.c component=? role=lib prefix=color includes=setup:1 cochange=diff:21,index:14,revision:13,setup:7,transport:7 color.h component=? role=public prefix=color cochange=diff:18,index:12,revision:12,transport:2,odb:1 column.c component=? role=lib prefix=column includes=setup:1 cochange=transport:6,setup:5,diff:4,revision:3,index:2
@@ -105,14 +101,8 @@ diff/userdiff.c component=diff role=lib prefix=userdiff includes=setup:2,convert diff/userdiff.h component=diff role=header prefix=diff includes=notes:1 cochange=diff:40,notes:2,archive:1,merge:1,revision:1 diff/xdiff-interface.c component=diff role=lib prefix=xdiff-interface includes=setup:2,diff:1,odb:1 cochange=diff:73,index:5,merge:3,notes:3,refs:3 diff/xdiff-interface.h component=diff role=header prefix=xdiff-interface includes=odb:1 cochange=diff:62,index:2,notes:2,merge:1,odb:1 -dir-iterator.c component=index role=lib prefix=dir-iterator includes=index:2 cochange=index:7,refs:1 -dir-iterator.h component=index role=header prefix=dir-iterator cochange=index:7,refs:1 -dir.c component=index role=lib prefix=dir includes=index:7,setup:4,odb:2,convert:1,refs:1 cochange=index:343,diff:61,setup:49,odb:37,convert:29 -dir.h component=index role=header prefix=dir includes=index:2,odb:1 cochange=index:236,odb:13,setup:12,submodule:11,convert:10 editor.c component=? role=lib prefix=editor includes=setup:2 cochange=transport:20,setup:12,index:8,odb:4,submodule:4 editor.h component=? role=public prefix=editor cochange=transport:1 -entry.c component=index role=lib prefix=entry includes=index:7,odb:1,setup:1,submodule:1 cochange=index:96,diff:28,convert:20,setup:17,odb:10 -entry.h component=index role=header prefix=entry includes=convert:1 cochange=index:18,submodule:4,revision:3,transport:2,convert:1 environment.c component=setup role=lib prefix=environment includes=setup:5,convert:3,odb:2,merge:1,refs:1 cochange=setup:281,index:77,odb:48,refs:36,transport:28 environment.h component=setup role=header prefix=environment includes=setup:1 cochange=setup:135,index:37,odb:15,refs:11,pack:9 exec-cmd.c component=? role=lib prefix=strvec includes=setup:1
@@ -126,15 +116,6 @@ fetch-pack.h component=transport role=header prefix=fetch-pack includes=odb:1,re fmt-merge-msg.c component=merge role=lib prefix=fmt-merge-msg includes=odb:3,diff:2,revision:2,setup:2,merge:1 cochange=revision:10,odb:7,index:6,diff:4,setup:4 fmt-merge-msg.h component=merge role=header prefix=fmt-merge-msg cochange=merge:3,setup:2 for-each-ref.h component=? role=public prefix=? -fsmonitor--daemon.h component=index role=header prefix=fsmonitor--daemon includes=index:1 cochange=index:1 -fsmonitor-ipc.c component=index role=lib prefix=fsmonitor includes=index:1,setup:1 cochange=index:6,transport:2,merge:1,notes:1,pack:1 -fsmonitor-ipc.h component=index role=header prefix=fsmonitor cochange=index:2 -fsmonitor-ll.h component=index role=header prefix=fsmonitor-ll cochange=index:4 -fsmonitor-path-utils.h component=index role=header prefix=fsmonitor cochange=index:2 -fsmonitor-settings.c component=index role=lib prefix=fsmonitor includes=index:3,setup:2 cochange=index:17,setup:10,transport:2,diff:1,odb:1 -fsmonitor-settings.h component=index role=header prefix=fsmonitor-settings cochange=index:11,setup:4 -fsmonitor.c component=index role=lib prefix=fsmonitor includes=index:4,setup:3 cochange=index:37,setup:16,transport:4,merge:2,refs:2 -fsmonitor.h component=index role=header prefix=fsmonitor includes=index:4,odb:1 cochange=index:24,setup:7,diff:3,submodule:1 gettext.c component=? role=lib prefix=gettext includes=setup:1 cochange=pack:5,refs:3,setup:2,transport:2,merge:1 gettext.h component=? role=public prefix=i18n cochange=transport:2,setup:1 git-compat-util.h component=? role=public prefix=git-compat-util cochange=setup:48,index:35,odb:22,pack:21,diff:17
@@ -165,6 +146,50 @@ http.h component=transport role=header prefix=http includes=transport:1 cochange ident.c component=setup role=lib prefix=ident includes=setup:2 cochange=setup:19,revision:10,odb:6,refs:6,pack:4 ident.h component=setup role=header prefix=ident cochange=setup:3,revision:1 imap-send.c component=? role=program prefix=imap-send includes=setup:3,transport:1 cochange=transport:47,diff:16,index:16,refs:9,odb:8 +index/cache-tree.c component=index role=lib prefix=cache-tree includes=odb:5,index:2,setup:1,transport:1 cochange=index:94,odb:69,revision:27,transport:21,diff:20 +index/cache-tree.h component=index role=header prefix=cache-tree includes=odb:2 cochange=index:42,diff:4,revision:4,odb:3,refs:1 +index/checkout.c component=index role=lib prefix=checkout includes=setup:2,index:1,odb:1,refs:1,transport:1 cochange=transport:16,refs:6,setup:5,index:3,odb:2 +index/checkout.h component=index role=header prefix=checkout includes=odb:1 cochange=index:4,diff:1,odb:1,refs:1,revision:1 +index/dir-iterator.c component=index role=lib prefix=dir-iterator includes=index:2 cochange=index:7,refs:1 +index/dir-iterator.h component=index role=header prefix=dir-iterator cochange=index:7,refs:1 +index/dir.c component=index role=lib prefix=dir includes=index:7,setup:4,odb:2,convert:1,refs:1 cochange=index:343,diff:61,setup:49,odb:37,convert:29 +index/dir.h component=index role=header prefix=dir includes=index:2,odb:1 cochange=index:236,odb:13,setup:12,submodule:11,convert:10 +index/entry.c component=index role=lib prefix=entry includes=index:7,odb:1,setup:1,submodule:1 cochange=index:96,diff:28,convert:20,setup:17,odb:10 +index/entry.h component=index role=header prefix=entry includes=convert:1 cochange=index:18,submodule:4,revision:3,transport:2,convert:1 +index/fsmonitor--daemon.h component=index role=header prefix=fsmonitor--daemon includes=index:1 cochange=index:1 +index/fsmonitor-ipc.c component=index role=lib prefix=fsmonitor includes=index:1,setup:1 cochange=index:6,transport:2,merge:1,notes:1,pack:1 +index/fsmonitor-ipc.h component=index role=header prefix=fsmonitor cochange=index:2 +index/fsmonitor-ll.h component=index role=header prefix=fsmonitor-ll cochange=index:4 +index/fsmonitor-path-utils.h component=index role=header prefix=fsmonitor cochange=index:2 +index/fsmonitor-settings.c component=index role=lib prefix=fsmonitor includes=index:3,setup:2 cochange=index:17,setup:10,transport:2,diff:1,odb:1 +index/fsmonitor-settings.h component=index role=header prefix=fsmonitor-settings cochange=index:11,setup:4 +index/fsmonitor.c component=index role=lib prefix=fsmonitor includes=index:4,setup:3 cochange=index:37,setup:16,transport:4,merge:2,refs:2 +index/fsmonitor.h component=index role=header prefix=fsmonitor includes=index:4,odb:1 cochange=index:24,setup:7,diff:3,submodule:1 +index/name-hash.c component=index role=lib prefix=name-hash includes=index:3,odb:1,setup:1 cochange=diff:43,index:39,revision:18,setup:14,refs:12 +index/name-hash.h component=index role=header prefix=name-hash cochange=index:7 +index/parallel-checkout.c component=index role=lib prefix=parallel-checkout includes=index:4,odb:1,setup:1,transport:1 cochange=index:26,transport:7,odb:6,diff:3,merge:3 +index/parallel-checkout.h component=index role=header prefix=parallel-checkout includes=convert:1 cochange=index:12,convert:1 +index/pathspec.c component=index role=lib prefix=pathspec includes=index:4,setup:3,convert:1 cochange=index:89,setup:23,convert:16,diff:16,revision:9 +index/pathspec.h component=index role=header prefix=pathspec cochange=index:67,diff:11,odb:9,convert:6,submodule:4 +index/preload-index.c component=index role=lib prefix=preload-index includes=index:6,setup:3 cochange=index:52,setup:15,diff:12,revision:5,merge:3 +index/preload-index.h component=index role=header prefix=preload-index cochange=index:2,setup:1 +index/read-cache-ll.h component=index role=header prefix=read-cache includes=index:1,odb:1 cochange=index:8,diff:1,odb:1,revision:1 +index/read-cache.c component=index role=lib prefix=read-cache includes=index:10,odb:6,setup:4,diff:2,submodule:2 cochange=index:240,odb:81,setup:79,diff:67,pack:46 +index/read-cache.h component=index role=header prefix=read-cache includes=index:2,odb:1,setup:1 cochange=index:4,setup:4,diff:2 +index/resolve-undo.c component=index role=lib prefix=resolve-undo includes=index:4,odb:1 cochange=index:33,merge:5,revision:4,diff:3,notes:2 +index/resolve-undo.h component=index role=header prefix=resolve-undo includes=odb:1 cochange=index:12,merge:3,archive:1,revision:1 +index/sparse-index.c component=index role=lib prefix=sparse-index includes=index:7,setup:3,odb:1 cochange=index:42,setup:17,diff:2,odb:2,revision:1 +index/sparse-index.h component=index role=header prefix=sparse-index cochange=index:16,setup:4,merge:1,revision:1 +index/split-index.c component=index role=lib prefix=split-index includes=index:2,odb:1,setup:1 cochange=index:46,odb:5,revision:4,pack:3,merge:2 +index/split-index.h component=index role=header prefix=split-index includes=odb:1 cochange=index:21,archive:1,merge:1,revision:1 +index/statinfo.c component=index role=lib prefix=environment includes=setup:2,index:1 cochange=index:9,setup:6,diff:2,odb:1,revision:1 +index/statinfo.h component=index role=header prefix=statinfo cochange=index:8,odb:1,revision:1 +index/symlinks.c component=index role=lib prefix=symlinks includes=index:1,setup:1 cochange=index:23,diff:3,archive:2,convert:1,revision:1 +index/symlinks.h component=index role=header prefix=symlinks cochange=index:9,diff:1 +index/unpack-trees.c component=index role=lib prefix=unpack-trees includes=index:11,odb:3,setup:3,submodule:2,convert:1 cochange=index:262,odb:49,diff:41,transport:19,revision:18 +index/unpack-trees.h component=index role=header prefix=unpack-trees includes=convert:1,index:1,odb:1 cochange=index:75,diff:9,odb:6,setup:5,merge:4 +index/wt-status.c component=index role=lib prefix=wt-status includes=odb:5,index:4,setup:3,diff:2,refs:2 cochange=index:149,diff:83,transport:55,refs:45,revision:45 +index/wt-status.h component=index role=header prefix=wt-status includes=index:1,transport:1 cochange=index:89,diff:10,refs:9,revision:4,transport:4 iterator.h component=? role=public prefix=refs cochange=index:2,refs:2 json-writer.c component=? role=lib prefix=json-writer json-writer.h component=? role=public prefix=json-writer cochange=transport:1
@@ -194,8 +219,6 @@ merge-ort.h component=merge role=header prefix=merge-ort includes=odb:1 cochange merge.c component=merge role=lib prefix=merge includes=odb:4,index:2,merge:1,setup:1 cochange=index:22,merge:6,setup:4,diff:2,odb:2 merge.h component=merge role=header prefix=merge cochange=merge:1 mergesort.h component=? role=public prefix=mergesort cochange=odb:1 -name-hash.c component=index role=lib prefix=name-hash includes=index:3,odb:1,setup:1 cochange=diff:43,index:39,revision:18,setup:14,refs:12 -name-hash.h component=index role=header prefix=name-hash cochange=index:7 notes-cache.c component=notes role=lib prefix=notes includes=odb:3,notes:1,refs:1,revision:1,setup:1 cochange=notes:37,odb:29,diff:10,index:10,revision:9 notes-cache.h component=notes role=header prefix=notes-cache includes=notes:1 cochange=diff:7,notes:3 notes-merge.c component=notes role=lib prefix=notes-merge includes=odb:4,diff:3,notes:3,index:1,merge:1 cochange=diff:54,revision:41,odb:37,notes:36,index:30
@@ -300,8 +323,6 @@ pack/server-info.c component=pack role=lib prefix=server-info includes=odb:5,pac pack/server-info.h component=pack role=header prefix=server-info cochange=pack:2 pager.c component=? role=lib prefix=pager includes=setup:4 cochange=setup:23,diff:9,transport:7,revision:3,submodule:3 pager.h component=? role=public prefix=pager cochange=diff:3,setup:2,revision:1 -parallel-checkout.c component=index role=lib prefix=parallel-checkout includes=index:4,odb:1,setup:1,transport:1 cochange=index:26,transport:7,odb:6,diff:3,merge:3 -parallel-checkout.h component=index role=header prefix=parallel-checkout includes=convert:1 cochange=index:12,convert:1 parse-options-cb.c component=? role=lib prefix=parse-options includes=odb:3,setup:2 cochange=revision:10,transport:10,diff:7,odb:4,refs:3 parse-options.c component=? role=lib prefix=parse-options cochange=index:14,diff:12,setup:10,transport:10,odb:6 parse-options.h component=? role=public prefix=parse-options cochange=diff:7,merge:4,archive:3,index:3,refs:3
@@ -311,12 +332,8 @@ path-walk.c component=? role=lib prefix=path-walk includes=odb:9,revision:3,inde path-walk.h component=? role=public prefix=path-walk includes=odb:1 cochange=index:2 path.c component=? role=lib prefix=path includes=setup:2,index:1,odb:1,pack:1,refs:1 cochange=setup:78,refs:29,index:26,transport:15,odb:12 path.h component=? role=public prefix=path includes=setup:1 cochange=setup:23,refs:13,odb:11,index:10,pack:8 -pathspec.c component=index role=lib prefix=pathspec includes=index:4,setup:3,convert:1 cochange=index:89,setup:23,convert:16,diff:16,revision:9 -pathspec.h component=index role=header prefix=pathspec cochange=index:67,diff:11,odb:9,convert:6,submodule:4 pkt-line.c component=transport role=lib prefix=pkt-line includes=transport:2 cochange=transport:102,pack:6,convert:5,diff:5,odb:3 pkt-line.h component=transport role=header prefix=pkt-line cochange=transport:94,pack:5,convert:4,odb:2,diff:1 -preload-index.c component=index role=lib prefix=preload-index includes=index:6,setup:3 cochange=index:52,setup:15,diff:12,revision:5,merge:3 -preload-index.h component=index role=header prefix=preload-index cochange=index:2,setup:1 prio-queue.c component=? role=lib prefix=prio-queue cochange=odb:5,revision:5,diff:2,pack:2,transport:2 prio-queue.h component=? role=public prefix=prio-queue cochange=odb:3,revision:2,transport:2,pack:1 progress.c component=? role=lib prefix=progress includes=setup:1 cochange=index:11,diff:6,setup:6,pack:4,revision:2
@@ -331,9 +348,6 @@ protocol.c component=transport role=lib prefix=protocol includes=setup:2,transpo protocol.h component=transport role=header prefix=protocol cochange=transport:5 quote.c component=? role=lib prefix=quote cochange=index:15,diff:12,transport:7,odb:6,revision:6 quote.h component=? role=public prefix=quote cochange=diff:8,transport:6,index:5,odb:5,refs:5 -read-cache-ll.h component=index role=header prefix=read-cache includes=index:1,odb:1 cochange=index:8,diff:1,odb:1,revision:1 -read-cache.c component=index role=lib prefix=read-cache includes=index:10,odb:6,setup:4,diff:2,submodule:2 cochange=index:240,odb:81,setup:79,diff:67,pack:46 -read-cache.h component=index role=header prefix=read-cache includes=index:2,odb:1,setup:1 cochange=index:4,setup:4,diff:2 rebase-interactive.c component=? role=lib prefix=rebase-interactive includes=odb:3,setup:3,index:1 cochange=revision:4,transport:4,index:3,odb:3,merge:2 rebase-interactive.h component=? role=public prefix=rebase-interactive rebase.c component=? role=lib prefix=rebase cochange=index:3,pack:3,setup:2,convert:1,diff:1
@@ -367,8 +381,6 @@ rerere.c component=merge role=lib prefix=rerere includes=index:4,merge:2,odb:2,s rerere.h component=merge role=header prefix=rerere cochange=merge:16,odb:1 reset.c component=? role=lib prefix=reset includes=odb:3,index:2,refs:1,setup:1 cochange=index:9,merge:5,odb:3,notes:2,revision:2 reset.h component=? role=public prefix=reset includes=odb:1,setup:1 -resolve-undo.c component=index role=lib prefix=resolve-undo includes=index:4,odb:1 cochange=index:33,merge:5,revision:4,diff:3,notes:2 -resolve-undo.h component=index role=header prefix=resolve-undo includes=odb:1 cochange=index:12,merge:3,archive:1,revision:1 revision/bisect.c component=revision role=lib prefix=bisect includes=odb:5,revision:5,setup:2,diff:1,index:1 cochange=revision:61,odb:32,transport:31,refs:13,diff:9 revision/bisect.h component=revision role=header prefix=bisect cochange=revision:29,odb:2 revision/blame.c component=revision role=lib prefix=blame includes=odb:5,diff:2,index:2,pack:2,revision:2 cochange=diff:68,revision:66,odb:56,index:29,pack:22
@@ -420,13 +432,7 @@ sideband.h component=transport role=header prefix=sideband cochange=transport:23 sigchain.c component=? role=lib prefix=sigchain cochange=diff:2,transport:1 sigchain.h component=? role=public prefix=sigchain cochange=diff:2 simple-ipc.h component=? role=public prefix=simple-ipc includes=transport:1 cochange=submodule:1 -sparse-index.c component=index role=lib prefix=sparse-index includes=index:7,setup:3,odb:1 cochange=index:42,setup:17,diff:2,odb:2,revision:1 -sparse-index.h component=index role=header prefix=sparse-index cochange=index:16,setup:4,merge:1,revision:1 -split-index.c component=index role=lib prefix=split-index includes=index:2,odb:1,setup:1 cochange=index:46,odb:5,revision:4,pack:3,merge:2 -split-index.h component=index role=header prefix=split-index includes=odb:1 cochange=index:21,archive:1,merge:1,revision:1 stable-qsort.c component=? role=lib prefix=stable-qsort -statinfo.c component=index role=lib prefix=environment includes=setup:2,index:1 cochange=index:9,setup:6,diff:2,odb:1,revision:1 -statinfo.h component=index role=header prefix=statinfo cochange=index:8,odb:1,revision:1 strbuf.c component=? role=lib prefix=strbuf cochange=index:16,odb:12,setup:11,revision:10,transport:10 strbuf.h component=? role=public prefix=strbuf cochange=revision:15,index:14,odb:14,diff:7,setup:7 string-list.c component=? role=lib prefix=string-list cochange=transport:14,index:8,notes:7,refs:7,diff:5
@@ -441,8 +447,6 @@ submodule-config.c component=submodule role=lib prefix=submodule-config includes submodule-config.h component=submodule role=header prefix=submodule-config includes=odb:1,setup:1,submodule:1 cochange=submodule:54,setup:9,odb:3,diff:2,index:2 submodule.c component=submodule role=lib prefix=submodule includes=odb:5,setup:4,diff:2,index:2,refs:2 cochange=submodule:134,diff:83,setup:66,index:60,revision:49 submodule.h component=submodule role=header prefix=submodule cochange=submodule:128,index:22,diff:21,transport:17,setup:6 -symlinks.c component=index role=lib prefix=symlinks includes=index:1,setup:1 cochange=index:23,diff:3,archive:2,convert:1,revision:1 -symlinks.h component=index role=header prefix=symlinks cochange=index:9,diff:1 tar.h component=? role=public prefix=tar-tree tempfile.c component=? role=lib prefix=tempfile cochange=pack:5,setup:4,index:3,odb:3,revision:3 tempfile.h component=? role=public prefix=tempfile includes=revision:1 cochange=revision:3,diff:2,index:2,setup:2
@@ -463,8 +467,6 @@ unix-socket.c component=? role=lib prefix=unix-socket cochange=diff:3,revision:2 unix-socket.h component=? role=public prefix=unix-socket unix-stream-server.c component=? role=lib prefix=unix-stream-server unix-stream-server.h component=? role=public prefix=unix-stream-server -unpack-trees.c component=index role=lib prefix=unpack-trees includes=index:11,odb:3,setup:3,submodule:2,convert:1 cochange=index:262,odb:49,diff:41,transport:19,revision:18 -unpack-trees.h component=index role=header prefix=unpack-trees includes=convert:1,index:1,odb:1 cochange=index:75,diff:9,odb:6,setup:5,merge:4 upload-pack.c component=transport role=lib prefix=upload-pack includes=transport:6,odb:4,revision:4,setup:4,diff:1 cochange=transport:198,odb:88,revision:80,refs:55,pack:34 upload-pack.h component=transport role=header prefix=upload-pack cochange=transport:18,refs:5,submodule:1 url.c component=? role=lib prefix=url cochange=transport:12,revision:8,diff:6,index:2,refs:2
@@ -490,5 +492,3 @@ write-or-die.c component=? role=lib prefix=write-or-die cochange=pack:6,setup:6, write-or-die.h component=? role=public prefix=write-or-die ws.c component=convert role=lib prefix=whitespace includes=convert:2 cochange=convert:24,diff:18,archive:9,index:5,setup:5 ws.h component=convert role=header prefix=whitespace cochange=diff:5,convert:2,setup:2 -wt-status.c component=index role=lib prefix=wt-status includes=odb:5,index:4,setup:3,diff:2,refs:2 cochange=index:149,diff:83,transport:55,refs:45,revision:45 -wt-status.h component=index role=header prefix=wt-status includes=index:1,transport:1 cochange=index:89,diff:10,refs:9,revision:4,transport:4
Documentation/MyFirstContribution.adoc +1 -1
@@ -390,7 +390,7 @@ to `repo_config()`. Let's modify the code we wrote in the previous commit. Be sure to include the header to allow you to use `struct wt_status`: ---- -#include "wt-status.h" +#include "index/wt-status.h" ---- Then modify your `cmd_psuh` implementation to declare your `struct wt_status`,
Makefile +21 -21
125 lines not on this page · raw message
add-interactive.c +3 -3
@@ -7,14 +7,14 @@#include "gettext.h" #include "odb/hash.h" #include "hex.h" -#include "preload-index.h" -#include "read-cache-ll.h" +#include "index/preload-index.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "revision/revision.h" #include "refs/refs.h" #include "string-list.h" #include "lockfile.h" -#include "dir.h" +#include "index/dir.h" #include "run-command.h" #include "prompt.h" #include "odb/tree.h"
add-patch.c +2 -2
@@ -13,13 +13,13 @@#include "hex.h" #include "odb/object-name.h" #include "pager.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "strbuf.h" #include "sigchain.h" #include "run-command.h" #include "strvec.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "color.h" #include "compat/terminal.h" #include "prompt.h"
apply.c +5 -5
@@ -17,26 +17,26 @@#include "odb/odb.h" #include "pack/delta.h" #include "diff/diff.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h" #include "diff/xdiff-interface.h" #include "merge-ll.h" #include "lockfile.h" -#include "name-hash.h" +#include "index/name-hash.h" #include "odb/object-name.h" #include "odb/object-file.h" #include "parse-options.h" #include "path.h" #include "quote.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "repository.h" #include "rerere.h" #include "apply.h" -#include "entry.h" +#include "index/entry.h" #include "setup.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "wildmatch.h" #include "ws.h"
archive.c +1 -1
@@ -21,7 +21,7 @@#include "attr.h" #include "archive.h" #include "parse-options.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "quote.h" static char const *const archive_usage[] = {
archive.h +1 -1
@@ -1,7 +1,7 @@#ifndef ARCHIVE_H #define ARCHIVE_H -#include "pathspec.h" +#include "index/pathspec.h" #include "string-list.h" struct repository ;
attr.c +2 -2
@@ -14,12 +14,12 @@#include "environment.h" #include "exec-cmd.h" #include "attr.h" -#include "dir.h" +#include "index/dir.h" #include "gettext.h" #include "path.h" #include "utf8.h" #include "quote.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "refs/refs.h" #include "revision/revision.h" #include "odb/odb.h"
builtin/add.c +4 -4
@@ -10,18 +10,18 @@#include "environment.h" #include "lockfile.h" #include "editor.h" -#include "dir.h" +#include "index/dir.h" #include "gettext.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "run-command.h" #include "odb/object-file.h" #include "odb/odb.h" #include "odb/transaction.h" #include "parse-options.h" #include "path.h" -#include "preload-index.h" +#include "index/preload-index.h" #include "diff/diff.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "revision/revision.h" #include "strvec.h" #include "submodule.h"
builtin/am.c +4 -4
@@ -15,20 +15,20 @@#include "gettext.h" #include "hex.h" #include "parse-options.h" -#include "dir.h" +#include "index/dir.h" #include "run-command.h" #include "hook.h" #include "quote.h" #include "tempfile.h" #include "lockfile.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "refs/refs.h" #include "odb/commit.h" #include "diff/diff.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "branch.h" #include "odb/object-name.h" -#include "preload-index.h" +#include "index/preload-index.h" #include "sequencer.h" #include "revision/revision.h" #include "merge-ort-wrappers.h"
builtin/backfill.c +1 -1
@@ -7,7 +7,7 @@#include "parse-options.h" #include "repository.h" #include "odb/commit.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "hex.h" #include "odb/tree.h"
builtin/check-ignore.c +2 -2
@@ -1,11 +1,11 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "quote.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "parse-options.h" #include "submodule.h" #include "write-or-die.h"
builtin/checkout--worker.c +3 -3
@@ -3,13 +3,13 @@#include "builtin.h" #include "config.h" -#include "entry.h" +#include "index/entry.h" #include "environment.h" #include "gettext.h" -#include "parallel-checkout.h" +#include "index/parallel-checkout.h" #include "parse-options.h" #include "pkt-line.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" static void packet_to_pc_item (const char *buffer,int len,struct parallel_checkout_item *pc_item)
builtin/checkout-index.c +5 -5
@@ -13,13 +13,13 @@#include "gettext.h" #include "lockfile.h" #include "quote.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "parse-options.h" -#include "entry.h" -#include "parallel-checkout.h" -#include "read-cache-ll.h" +#include "index/entry.h" +#include "index/parallel-checkout.h" +#include "index/read-cache-ll.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #define CHECKOUT_ALL 4static int nul_term_line;
builtin/checkout.c +12 -12
@@ -4,12 +4,12 @@#include "builtin.h" #include "advice.h" #include "branch.h" -#include "cache-tree.h" -#include "checkout.h" +#include "index/cache-tree.h" +#include "index/checkout.h" #include "odb/commit.h" #include "config.h" #include "diff/diff.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h"
@@ -22,27 +22,27 @@#include "odb/odb.h" #include "parse-options.h" #include "path.h" -#include "preload-index.h" -#include "read-cache.h" +#include "index/preload-index.h" +#include "index/read-cache.h" #include "refs/refs.h" #include "remote.h" #include "repo-settings.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "revision/revision.h" #include "sequencer.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "strvec.h" #include "submodule.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "trace2.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "unpack-trees.h" -#include "wt-status.h" +#include "index/unpack-trees.h" +#include "index/wt-status.h" #include "diff/xdiff-interface.h" -#include "entry.h" -#include "parallel-checkout.h" +#include "index/entry.h" +#include "index/parallel-checkout.h" #include "add-interactive.h" struct checkout_opts {
builtin/clean.c +3 -3
@@ -12,18 +12,18 @@#include "builtin.h" #include "abspath.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "parse-options.h" #include "path.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "setup.h" #include "string-list.h" #include "quote.h" #include "column.h" #include "color.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "help.h" #include "prompt.h"
builtin/clone.c +3 -3
@@ -28,11 +28,11 @@#include "odb/odb.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "transport.h" #include "strbuf.h" -#include "dir.h" -#include "dir-iterator.h" +#include "index/dir.h" +#include "index/dir-iterator.h" #include "iterator.h" #include "sigchain.h" #include "branch.h"
builtin/commit.c +7 -7
@@ -12,9 +12,9 @@#include "advice.h" #include "config.h" #include "lockfile.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "color.h" -#include "dir.h" +#include "index/dir.h" #include "editor.h" #include "environment.h" #include "diff/diff.h"
@@ -22,21 +22,21 @@#include "add-interactive.h" #include "gettext.h" #include "revision/revision.h" -#include "wt-status.h" +#include "index/wt-status.h" #include "run-command.h" #include "strbuf.h" #include "odb/object-name.h" #include "parse-options.h" #include "path.h" -#include "preload-index.h" -#include "read-cache.h" +#include "index/preload-index.h" +#include "index/read-cache.h" #include "repository.h" #include "string-list.h" #include "rerere.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "column.h" #include "sequencer.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "mailmap.h" #include "help.h" #include "revision/commit-reach.h"
builtin/count-objects.c +1 -1
@@ -6,7 +6,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "path.h"
builtin/describe.c +1 -1
@@ -12,7 +12,7 @@#include "refs/refs.h" #include "odb/object-name.h" #include "parse-options.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "revision/revision.h" #include "diff/diff.h" #include "hashmap.h"
builtin/diff-files.c +1 -1
@@ -12,7 +12,7 @@#include "diff/diff.h" #include "diff/diff-merges.h" #include "odb/commit.h" -#include "preload-index.h" +#include "index/preload-index.h" #include "revision/revision.h" static const char diff_files_usage[] =
builtin/diff-index.c +1 -1
@@ -6,7 +6,7 @@#include "diff/diff.h" #include "diff/diff-merges.h" #include "odb/commit.h" -#include "preload-index.h" +#include "index/preload-index.h" #include "revision/revision.h" #include "setup.h"
builtin/diff-tree.c +1 -1
@@ -7,7 +7,7 @@#include "gettext.h" #include "hex.h" #include "revision/log-tree.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "revision/revision.h" #include "odb/tmp-objdir.h" #include "odb/tree.h"
builtin/diff.c +2 -2
@@ -18,8 +18,8 @@#include "diff/diff.h" #include "diff/diff-merges.h" #include "diff/diffcore.h" -#include "preload-index.h" -#include "read-cache-ll.h" +#include "index/preload-index.h" +#include "index/read-cache-ll.h" #include "revision/revision.h" #include "revision/log-tree.h" #include "setup.h"
builtin/difftool.c +4 -4
@@ -23,16 +23,16 @@#include "hex.h" #include "parse-options.h" #include "path.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "strvec.h" #include "strbuf.h" #include "lockfile.h" #include "odb/object-file.h" #include "odb/odb.h" -#include "dir.h" -#include "entry.h" +#include "index/dir.h" +#include "index/entry.h" #include "setup.h" static const char *const builtin_difftool_usage[] = {
builtin/fast-import.c +2 -2
@@ -15,11 +15,11 @@#include "pack/delta.h" #include "pack/pack.h" #include "path.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "refs/refs.h" #include "csum-file.h" #include "quote.h" -#include "dir.h" +#include "index/dir.h" #include "run-command.h" #include "pack/packfile.h" #include "odb/object-file.h"
builtin/fsck.c +4 -4
@@ -8,7 +8,7 @@#include "odb/tag.h" #include "refs/refs.h" #include "pack/pack.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "odb/fsck.h" #include "parse-options.h" #include "progress.h"
@@ -18,11 +18,11 @@#include "odb/odb.h" #include "odb/streaming.h" #include "path.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "odb/replace-object.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "run-command.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "refs/worktree.h" #include "pack/pack-revindex.h" #include "pack/pack-bitmap.h"
builtin/fsmonitor--daemon.c +5 -5
@@ -4,16 +4,16 @@#include "builtin.h" #include "abspath.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "parse-options.h" -#include "fsmonitor-ll.h" -#include "fsmonitor-ipc.h" -#include "fsmonitor-settings.h" +#include "index/fsmonitor-ll.h" +#include "index/fsmonitor-ipc.h" +#include "index/fsmonitor-settings.h" #include "compat/fsmonitor/fsm-health.h" #include "compat/fsmonitor/fsm-listen.h" -#include "fsmonitor--daemon.h" +#include "index/fsmonitor--daemon.h" #include "simple-ipc.h" #include "strmap.h"
builtin/gc.c +1 -1
@@ -16,7 +16,7 @@#include "builtin.h" #include "abspath.h" #include "date.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "hex.h" #include "config.h"
builtin/grep.c +3 -3
@@ -20,8 +20,8 @@#include "run-command.h" #include "grep.h" #include "quote.h" -#include "dir.h" -#include "pathspec.h" +#include "index/dir.h" +#include "index/pathspec.h" #include "setup.h" #include "submodule.h" #include "submodule-config.h"
@@ -33,7 +33,7 @@#include "pager.h" #include "path.h" #include "promisor-remote.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "write-or-die.h" static const char *grep_prefix;
builtin/history.c +4 -4
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "odb/commit.h" #include "revision/commit-reach.h" #include "config.h"
@@ -14,7 +14,7 @@#include "odb/oidmap.h" #include "parse-options.h" #include "path.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "refs/refs.h" #include "replay.h" #include "reset.h"
@@ -23,8 +23,8 @@#include "strvec.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "unpack-trees.h" -#include "wt-status.h" +#include "index/unpack-trees.h" +#include "index/wt-status.h" #define GIT_HISTORY_DROP_USAGE \ N_("git history drop <commit> [--dry-run] [--update-refs=(branches|head)] [--empty=(drop|keep|abort)]")
builtin/ls-files.c +5 -5
@@ -13,18 +13,18 @@#include "convert.h" #include "environment.h" #include "quote.h" -#include "dir.h" +#include "index/dir.h" #include "gettext.h" #include "odb/object-name.h" #include "strbuf.h" #include "parse-options.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "string-list.h" #include "path.h" -#include "pathspec.h" -#include "read-cache.h" +#include "index/pathspec.h" +#include "index/read-cache.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "submodule.h" #include "odb/odb.h" #include "hex.h"
builtin/ls-tree.c +1 -1
@@ -16,7 +16,7 @@#include "path.h" #include "quote.h" #include "parse-options.h" -#include "pathspec.h" +#include "index/pathspec.h" static const char *const ls_tree_usage[] = {N_ ("git ls-tree [<options>] <tree-ish> [<path>...]" ),
builtin/merge-index.c +2 -2
@@ -3,9 +3,9 @@#include "builtin.h" #include "hex.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "run-command.h" -#include "sparse-index.h" +#include "index/sparse-index.h" static const char *pgm;static int one_shot, quiet;
builtin/merge.c +5 -5
@@ -32,15 +32,15 @@#include "diff/diffcore.h" #include "path.h" #include "revision/revision.h" -#include "unpack-trees.h" -#include "cache-tree.h" -#include "dir.h" +#include "index/unpack-trees.h" +#include "index/cache-tree.h" +#include "index/dir.h" #include "color.h" #include "rerere.h" #include "help.h" #include "merge.h" #include "merge-ort-wrappers.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "remote.h" #include "fmt-merge-msg.h" #include "sequencer.h"
@@ -49,7 +49,7 @@#include "alias.h" #include "branch.h" #include "revision/commit-reach.h" -#include "wt-status.h" +#include "index/wt-status.h" #include "pack/commit-graph.h" #define DEFAULT_TWOHEAD (1<<0)
builtin/mv.c +6 -6
@@ -13,21 +13,21 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "name-hash.h" +#include "index/name-hash.h" #include "odb/object-file.h" #include "path.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "lockfile.h" -#include "dir.h" +#include "index/dir.h" #include "string-list.h" #include "parse-options.h" -#include "read-cache-ll.h" -#include "symlinks.h" +#include "index/read-cache-ll.h" +#include "index/symlinks.h" #include "setup.h" #include "strvec.h" #include "submodule.h" -#include "entry.h" +#include "index/entry.h" static const char *const builtin_mv_usage[] = {N_ ("git mv [-v] [-f] [-n] [-k] <source> <destination>" ),
builtin/pack-objects.c +1 -1
@@ -36,7 +36,7 @@#include "odb/odb.h" #include "odb/streaming.h" #include "odb/replace-object.h" -#include "dir.h" +#include "index/dir.h" #include "pack/midx.h" #include "trace2.h" #include "revision/shallow.h"
builtin/prune.c +1 -1
@@ -3,7 +3,7 @@#include "builtin.h" #include "odb/commit.h" #include "diff/diff.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h"
builtin/pull.c +3 -3
@@ -20,15 +20,15 @@#include "run-command.h" #include "odb/oid-array.h" #include "remote.h" -#include "dir.h" +#include "index/dir.h" #include "path.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "rebase.h" #include "refs/refs.h" #include "refs/refspec.h" #include "submodule.h" #include "submodule-config.h" -#include "wt-status.h" +#include "index/wt-status.h" #include "revision/commit-reach.h" #include "sequencer.h"
builtin/push.c +1 -1
@@ -8,7 +8,7 @@#include "advice.h" #include "branch.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h"
builtin/read-tree.c +4 -4
@@ -14,12 +14,12 @@#include "odb/object-name.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "cache-tree.h" -#include "unpack-trees.h" +#include "index/cache-tree.h" +#include "index/unpack-trees.h" #include "parse-options.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "submodule.h" static int nr_trees;
builtin/rebase.c +3 -3
@@ -15,10 +15,10 @@#include "hex.h" #include "run-command.h" #include "strvec.h" -#include "dir.h" +#include "index/dir.h" #include "refs/refs.h" #include "config.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "lockfile.h" #include "odb/object-file.h" #include "odb/object-name.h"
@@ -26,7 +26,7 @@#include "path.h" #include "odb/commit.h" #include "diff/diff.h" -#include "wt-status.h" +#include "index/wt-status.h" #include "revision/revision.h" #include "revision/commit-reach.h" #include "rerere.h"
builtin/rerere.c +1 -1
@@ -9,7 +9,7 @@#include "string-list.h" #include "xdiff/xdiff.h" #include "diff/xdiff-interface.h" -#include "pathspec.h" +#include "index/pathspec.h" static const char *const rerere_usage[] = {N_ ("git rerere [clear | forget <pathspec>... | diff | status | remaining | gc]" ),
builtin/reset.c +4 -4
@@ -29,14 +29,14 @@#include "parse-options.h" #include "path.h" #include "repository.h" -#include "unpack-trees.h" -#include "cache-tree.h" +#include "index/unpack-trees.h" +#include "index/cache-tree.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "submodule.h" #include "trace.h" #include "trace2.h" -#include "dir.h" +#include "index/dir.h" #include "add-interactive.h" #define REFRESH_INDEX_DELAY_WARNING_IN_MS (2 * 1000)
builtin/rev-parse.c +2 -2
@@ -23,12 +23,12 @@#include "parse-options.h" #include "path.h" #include "diff/diff.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repo-settings.h" #include "repository.h" #include "revision/revision.h" #include "setup.h" -#include "split-index.h" +#include "index/split-index.h" #include "submodule.h" #include "revision/commit-reach.h" #include "revision/shallow.h"
builtin/rm.c +4 -4
@@ -11,19 +11,19 @@#include "config.h" #include "environment.h" #include "lockfile.h" -#include "dir.h" +#include "index/dir.h" #include "gettext.h" #include "odb/hash.h" #include "odb/tree-walk.h" #include "odb/object-name.h" #include "parse-options.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "string-list.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "submodule.h" -#include "pathspec.h" +#include "index/pathspec.h" static const char *const builtin_rm_usage[] = { N_("git rm [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch]\n"
builtin/show-branch.c +1 -1
@@ -14,7 +14,7 @@#include "odb/object-name.h" #include "parse-options.h" -#include "dir.h" +#include "index/dir.h" #include "odb/commit-slab.h" #include "date.h" #include "wildmatch.h"
builtin/sparse-checkout.c +4 -4
@@ -4,21 +4,21 @@#include "builtin.h" #include "abspath.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "parse-options.h" #include "path.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "strbuf.h" #include "string-list.h" #include "lockfile.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "quote.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "refs/worktree.h" static const char *empty_base ="" ;
builtin/stash.c +7 -7
@@ -11,20 +11,20 @@#include "parse-options.h" #include "refs/refs.h" #include "lockfile.h" -#include "cache-tree.h" -#include "unpack-trees.h" +#include "index/cache-tree.h" +#include "index/unpack-trees.h" #include "merge-ort-wrappers.h" #include "strvec.h" #include "run-command.h" -#include "dir.h" -#include "entry.h" -#include "preload-index.h" -#include "read-cache.h" +#include "index/dir.h" +#include "index/entry.h" +#include "index/preload-index.h" +#include "index/read-cache.h" #include "repository.h" #include "rerere.h" #include "revision/revision.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "revision/log-tree.h" #include "diff/diffcore.h" #include "refs/reflog.h"
builtin/submodule--helper.c +5 -5
@@ -10,12 +10,12 @@#include "parse-options.h" #include "quote.h" #include "path.h" -#include "pathspec.h" -#include "preload-index.h" -#include "dir.h" -#include "read-cache.h" +#include "index/pathspec.h" +#include "index/preload-index.h" +#include "index/dir.h" +#include "index/read-cache.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "submodule.h" #include "submodule-config.h" #include "string-list.h"
builtin/update-index.c +9 -9
@@ -15,22 +15,22 @@#include "hex.h" #include "lockfile.h" #include "quote.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "odb/tree-walk.h" #include "odb/object-file.h" #include "odb/odb.h" #include "odb/transaction.h" #include "refs/refs.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "parse-options.h" -#include "pathspec.h" -#include "dir.h" -#include "read-cache.h" +#include "index/pathspec.h" +#include "index/dir.h" +#include "index/read-cache.h" #include "setup.h" -#include "sparse-index.h" -#include "split-index.h" -#include "symlinks.h" -#include "fsmonitor.h" +#include "index/sparse-index.h" +#include "index/split-index.h" +#include "index/symlinks.h" +#include "index/fsmonitor.h" #include "write-or-die.h" /*
builtin/worktree.c +3 -3
@@ -4,10 +4,10 @@#include "builtin.h" #include "abspath.h" #include "advice.h" -#include "checkout.h" +#include "index/checkout.h" #include "config.h" #include "copy.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h"
@@ -17,7 +17,7 @@#include "path.h" #include "strvec.h" #include "branch.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "refs/refs.h" #include "remote.h" #include "run-command.h"
builtin/write-tree.c +1 -1
@@ -10,7 +10,7 @@#include "gettext.h" #include "hex.h" #include "odb/tree.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "parse-options.h" static const char *const write_tree_usage[] = {
compat/fsmonitor/fsm-health-darwin.c +2 -2
@@ -1,8 +1,8 @@#include "git-compat-util.h" #include "config.h" -#include "fsmonitor-ll.h" +#include "index/fsmonitor-ll.h" #include "fsm-health.h" -#include "fsmonitor--daemon.h" +#include "index/fsmonitor--daemon.h" int fsm_health__ctor(struct fsmonitor_daemon_state *state UNUSED) {
compat/fsmonitor/fsm-health-linux.c +2 -2
@@ -1,8 +1,8 @@#include "git-compat-util.h" #include "config.h" -#include "fsmonitor-ll.h" +#include "index/fsmonitor-ll.h" #include "fsm-health.h" -#include "fsmonitor--daemon.h" +#include "index/fsmonitor--daemon.h" /* * The Linux fsmonitor implementation uses inotify which has its own
compat/fsmonitor/fsm-health-win32.c +2 -2
@@ -1,8 +1,8 @@#include "git-compat-util.h" #include "config.h" -#include "fsmonitor-ll.h" +#include "index/fsmonitor-ll.h" #include "fsm-health.h" -#include "fsmonitor--daemon.h" +#include "index/fsmonitor--daemon.h" #include "gettext.h" #include "simple-ipc.h"
compat/fsmonitor/fsm-ipc-unix.c +3 -3
@@ -7,9 +7,9 @@#include "path.h" #include "repository.h" #include "strbuf.h" -#include "fsmonitor-ll.h" -#include "fsmonitor-ipc.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor-ll.h" +#include "index/fsmonitor-ipc.h" +#include "index/fsmonitor-path-utils.h" static GIT_PATH_FUNC(fsmonitor_ipc__get_default_path, "fsmonitor--daemon.ipc")
compat/fsmonitor/fsm-ipc-win32.c +1 -1
@@ -1,6 +1,6 @@#include "git-compat-util.h" #include "config.h" -#include "fsmonitor-ipc.h" +#include "index/fsmonitor-ipc.h" #include "path.h" const char *fsmonitor_ipc__get_path (struct repository *r) {
compat/fsmonitor/fsm-listen-darwin.c +3 -3
@@ -24,10 +24,10 @@#endif #include "git-compat-util.h" -#include "fsmonitor-ll.h" +#include "index/fsmonitor-ll.h" #include "fsm-listen.h" -#include "fsmonitor--daemon.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor--daemon.h" +#include "index/fsmonitor-path-utils.h" #include "gettext.h" #include "simple-ipc.h" #include "string-list.h"
compat/fsmonitor/fsm-listen-linux.c +4 -4
@@ -1,9 +1,9 @@#include "git-compat-util.h" -#include "dir.h" -#include "fsmonitor-ll.h" +#include "index/dir.h" +#include "index/fsmonitor-ll.h" #include "fsm-listen.h" -#include "fsmonitor--daemon.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor--daemon.h" +#include "index/fsmonitor-path-utils.h" #include "gettext.h" #include "simple-ipc.h" #include "string-list.h"
compat/fsmonitor/fsm-listen-win32.c +2 -2
@@ -1,8 +1,8 @@#include "git-compat-util.h" #include "config.h" -#include "fsmonitor-ll.h" +#include "index/fsmonitor-ll.h" #include "fsm-listen.h" -#include "fsmonitor--daemon.h" +#include "index/fsmonitor--daemon.h" #include "gettext.h" #include "simple-ipc.h" #include "trace2.h"
compat/fsmonitor/fsm-path-utils-darwin.c +2 -2
@@ -1,6 +1,6 @@#include "git-compat-util.h" -#include "fsmonitor-ll.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor-ll.h" +#include "index/fsmonitor-path-utils.h" #include "gettext.h" #include "trace.h" #include <dirent.h>
compat/fsmonitor/fsm-path-utils-linux.c +2 -2
@@ -1,6 +1,6 @@#include "git-compat-util.h" -#include "fsmonitor-ll.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor-ll.h" +#include "index/fsmonitor-path-utils.h" #include "gettext.h" #include "trace.h"
compat/fsmonitor/fsm-path-utils-win32.c +2 -2
@@ -1,6 +1,6 @@#include "git-compat-util.h" -#include "fsmonitor-ll.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor-ll.h" +#include "index/fsmonitor-path-utils.h" #include "gettext.h" #include "trace.h"
compat/fsmonitor/fsm-settings-unix.c +4 -4
@@ -1,9 +1,9 @@#include "git-compat-util.h" #include "config.h" -#include "fsmonitor-ll.h" -#include "fsmonitor-ipc.h" -#include "fsmonitor-settings.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor-ll.h" +#include "index/fsmonitor-ipc.h" +#include "index/fsmonitor-settings.h" +#include "index/fsmonitor-path-utils.h" /* * For the builtin FSMonitor, we create the Unix domain socket for the
compat/fsmonitor/fsm-settings-win32.c +3 -3
@@ -1,9 +1,9 @@#include "git-compat-util.h" #include "config.h" #include "repository.h" -#include "fsmonitor-ll.h" -#include "fsmonitor-settings.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor-ll.h" +#include "index/fsmonitor-settings.h" +#include "index/fsmonitor-path-utils.h" /* * VFS for Git is incompatible with FSMonitor.
compat/mingw.c +2 -2
@@ -5,13 +5,13 @@#include "abspath.h" #include "odb/alloc.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "repository.h" #include "gettext.h" #include "run-command.h" #include "strbuf.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "trace2.h" #include "win32.h" #include "win32/exit-process.h"
config.c +1 -1
@@ -12,7 +12,7 @@#include "date.h" #include "branch.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "parse.h" #include "convert.h" #include "environment.h"
convert.c +1 -1
@@ -12,7 +12,7 @@#include "attr.h" #include "run-command.h" #include "quote.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "sigchain.h" #include "pkt-line.h" #include "sub-process.h"
diagnose.c +1 -1
@@ -2,7 +2,7 @@#include "diagnose.h" #include "compat/disk.h" #include "archive.h" -#include "dir.h" +#include "index/dir.h" #include "help.h" #include "gettext.h" #include "hex.h"
diff/diff-lib.c +6 -6
@@ -13,17 +13,17 @@#include "odb/hash.h" #include "hex.h" #include "odb/object-name.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "revision/revision.h" -#include "cache-tree.h" -#include "unpack-trees.h" +#include "index/cache-tree.h" +#include "index/unpack-trees.h" #include "refs/refs.h" #include "repository.h" #include "submodule.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "trace.h" -#include "dir.h" -#include "fsmonitor.h" +#include "index/dir.h" +#include "index/fsmonitor.h" #include "revision/commit-reach.h" /*
diff/diff-no-index.c +2 -2
@@ -15,9 +15,9 @@#include "gettext.h" #include "revision/revision.h" #include "parse-options.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "string-list.h" -#include "dir.h" +#include "index/dir.h" static int read_directory_contents(const char *path, struct string_list *list, const struct pathspec *pathspec,
diff/diff.c +2 -2
@@ -39,10 +39,10 @@#include "parse-options.h" #include "help.h" #include "promisor-remote.h" -#include "dir.h" +#include "index/dir.h" #include "odb/object-file.h" #include "odb/object-name.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "setup.h" #include "strmap.h" #include "ws.h"
diff/diff.h +1 -1
@@ -5,7 +5,7 @@#define DIFF_H #include "odb/hash.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "strbuf.h" #include "color.h"
diff/tree-diff.c +1 -1
@@ -11,7 +11,7 @@#include "odb/tree.h" #include "odb/tree-walk.h" #include "repository.h" -#include "dir.h" +#include "index/dir.h" /* * Some mode bits are also used internally for computations.
git.c +1 -1
@@ -8,7 +8,7 @@#include "help.h" #include "odb/object-file.h" #include "pager.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "run-command.h" #include "alias.h" #include "odb/replace-object.h"
gpg-interface.c +1 -1
@@ -7,7 +7,7 @@#include "gettext.h" #include "run-command.h" #include "strbuf.h" -#include "dir.h" +#include "index/dir.h" #include "ident.h" #include "gpg-interface.h" #include "path.h"
help.c +1 -1
@@ -18,7 +18,7 @@#include "refs/refs.h" #include "parse-options.h" #include "prompt.h" -#include "fsmonitor-ipc.h" +#include "index/fsmonitor-ipc.h" #include "repository.h" #include "alias.h" #include "utf8.h"
index/cache-tree.c renamed from cache-tree.c +2 -2
@@ -7,11 +7,11 @@#include "lockfile.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "odb/object-file.h" #include "odb/odb.h" #include "odb/transaction.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "odb/replace-object.h" #include "repository.h" #include "promisor-remote.h"
index/cache-tree.h renamed from cache-tree.h +0 -0
index/checkout.c renamed from checkout.c +1 -1
@@ -5,7 +5,7 @@#include "remote.h" #include "refs/refspec.h" #include "repository.h" -#include "checkout.h" +#include "index/checkout.h" #include "config.h" #include "strbuf.h"
index/checkout.h renamed from checkout.h +0 -0
index/dir-iterator.c renamed from dir-iterator.c +2 -2
@@ -1,7 +1,7 @@#include "git-compat-util.h" -#include "dir.h" +#include "index/dir.h" #include "iterator.h" -#include "dir-iterator.h" +#include "index/dir-iterator.h" #include "string-list.h" struct dir_iterator_level {
index/dir-iterator.h renamed from dir-iterator.h +0 -0
index/dir.c renamed from dir.c +7 -7
@@ -13,26 +13,26 @@#include "abspath.h" #include "config.h" #include "convert.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" -#include "name-hash.h" +#include "index/name-hash.h" #include "odb/object-file.h" #include "path.h" #include "refs/refs.h" #include "repository.h" #include "wildmatch.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "utf8.h" #include "varint.h" #include "ewah/ewok.h" -#include "fsmonitor-ll.h" -#include "read-cache-ll.h" +#include "index/fsmonitor-ll.h" +#include "index/read-cache-ll.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "strbuf.h" #include "submodule-config.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "trace2.h" #include "odb/tree.h" #include "hex.h"
index/dir.h renamed from dir.h +2 -2
@@ -3,8 +3,8 @@#include "odb/hash.h" #include "hashmap.h" -#include "pathspec.h" -#include "statinfo.h" +#include "index/pathspec.h" +#include "index/statinfo.h" #include "strbuf.h" struct repository ;
index/entry.c renamed from entry.c +7 -7
@@ -3,18 +3,18 @@#include "git-compat-util.h" #include "odb/odb.h" #include "odb/streaming.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h" -#include "name-hash.h" -#include "sparse-index.h" +#include "index/name-hash.h" +#include "index/sparse-index.h" #include "submodule.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "progress.h" -#include "fsmonitor.h" -#include "entry.h" -#include "parallel-checkout.h" +#include "index/fsmonitor.h" +#include "index/entry.h" +#include "index/parallel-checkout.h" static void create_directories (const char *path,int path_len,const struct checkout *state)
index/entry.h renamed from entry.h +0 -0
index/fsmonitor--daemon.h renamed from fsmonitor--daemon.h +1 -1
@@ -5,7 +5,7 @@#include "hashmap.h" #include "thread-utils.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor-path-utils.h" struct fsmonitor_batch ;struct fsmonitor_token_data ;
index/fsmonitor-ipc.c renamed from fsmonitor-ipc.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "gettext.h" #include "simple-ipc.h" -#include "fsmonitor-ipc.h" +#include "index/fsmonitor-ipc.h" #include "repository.h" #include "run-command.h" #include "strbuf.h"
index/fsmonitor-ipc.h renamed from fsmonitor-ipc.h +0 -0
index/fsmonitor-ll.h renamed from fsmonitor-ll.h +0 -0
index/fsmonitor-path-utils.h renamed from fsmonitor-path-utils.h +0 -0
index/fsmonitor-settings.c renamed from fsmonitor-settings.c +3 -3
@@ -2,9 +2,9 @@#include "config.h" #include "gettext.h" #include "repository.h" -#include "fsmonitor-ipc.h" -#include "fsmonitor-settings.h" -#include "fsmonitor-path-utils.h" +#include "index/fsmonitor-ipc.h" +#include "index/fsmonitor-settings.h" +#include "index/fsmonitor-path-utils.h" /* * We keep this structure definition private and have getters
index/fsmonitor-settings.h renamed from fsmonitor-settings.h +0 -0
index/fsmonitor.c renamed from fsmonitor.c +4 -4
@@ -3,12 +3,12 @@#include "git-compat-util.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "ewah/ewok.h" -#include "fsmonitor.h" -#include "fsmonitor-ipc.h" -#include "name-hash.h" +#include "index/fsmonitor.h" +#include "index/fsmonitor-ipc.h" +#include "index/name-hash.h" #include "repository.h" #include "run-command.h" #include "strbuf.h"
index/fsmonitor.h renamed from fsmonitor.h +4 -4
@@ -1,11 +1,11 @@#ifndef FSMONITOR_H #define FSMONITOR_H -#include "fsmonitor-ll.h" -#include "dir.h" -#include "fsmonitor-settings.h" +#include "index/fsmonitor-ll.h" +#include "index/dir.h" +#include "index/fsmonitor-settings.h" #include "odb/object.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "trace.h" /*
index/name-hash.c renamed from name-hash.c +3 -3
@@ -12,13 +12,13 @@#include "git-compat-util.h" #include "environment.h" #include "gettext.h" -#include "name-hash.h" +#include "index/name-hash.h" #include "odb/object.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "thread-utils.h" #include "trace.h" #include "trace2.h" -#include "sparse-index.h" +#include "index/sparse-index.h" struct dir_entry {struct hashmap_entry ent;
index/name-hash.h renamed from name-hash.h +0 -0
index/parallel-checkout.c renamed from parallel-checkout.c +4 -4
@@ -3,18 +3,18 @@#include "git-compat-util.h" #include "config.h" -#include "entry.h" +#include "index/entry.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h" -#include "parallel-checkout.h" +#include "index/parallel-checkout.h" #include "pkt-line.h" #include "progress.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "run-command.h" #include "sigchain.h" #include "odb/streaming.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "thread-utils.h" #include "trace2.h"
index/parallel-checkout.h renamed from parallel-checkout.h +0 -0
index/pathspec.c renamed from pathspec.c +4 -4
@@ -3,16 +3,16 @@#include "git-compat-util.h" #include "abspath.h" #include "parse.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "attr.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "repository.h" #include "setup.h" #include "strvec.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "quote.h" #include "wildmatch.h"
index/pathspec.h renamed from pathspec.h +0 -0
index/preload-index.c renamed from preload-index.c +6 -6
@@ -5,18 +5,18 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "pathspec.h" -#include "dir.h" +#include "index/pathspec.h" +#include "index/dir.h" #include "environment.h" -#include "fsmonitor.h" +#include "index/fsmonitor.h" #include "gettext.h" #include "parse.h" -#include "preload-index.h" +#include "index/preload-index.h" #include "progress.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "thread-utils.h" #include "repository.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "trace2.h" #include "config.h"
index/preload-index.h renamed from preload-index.h +0 -0
index/read-cache-ll.h renamed from read-cache-ll.h +1 -1
@@ -3,7 +3,7 @@#include "odb/hash.h" #include "hashmap.h" -#include "statinfo.h" +#include "index/statinfo.h" /* * Basic data structures for the directory cache
index/read-cache.c renamed from read-cache.c +10 -10
@@ -15,9 +15,9 @@#include "hex.h" #include "tempfile.h" #include "lockfile.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "refs/refs.h" -#include "dir.h" +#include "index/dir.h" #include "odb/object-file.h" #include "odb/odb.h" #include "odb/transaction.h"
@@ -27,24 +27,24 @@#include "environment.h" #include "gettext.h" #include "mem-pool.h" -#include "name-hash.h" +#include "index/name-hash.h" #include "odb/object-name.h" #include "path.h" -#include "preload-index.h" -#include "read-cache.h" +#include "index/preload-index.h" +#include "index/read-cache.h" #include "repository.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "revision/revision.h" #include "strbuf.h" #include "trace2.h" #include "varint.h" -#include "split-index.h" -#include "symlinks.h" +#include "index/split-index.h" +#include "index/symlinks.h" #include "utf8.h" -#include "fsmonitor.h" +#include "index/fsmonitor.h" #include "thread-utils.h" #include "progress.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "csum-file.h" #include "promisor-remote.h" #include "hook.h"
index/read-cache.h renamed from read-cache.h +2 -2
@@ -1,9 +1,9 @@#ifndef READ_CACHE_H #define READ_CACHE_H -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "odb/object.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "environment.h" /*
index/resolve-undo.c renamed from resolve-undo.c +4 -4
@@ -1,11 +1,11 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "dir.h" +#include "index/dir.h" #include "odb/hash.h" -#include "read-cache.h" -#include "resolve-undo.h" -#include "sparse-index.h" +#include "index/read-cache.h" +#include "index/resolve-undo.h" +#include "index/sparse-index.h" #include "string-list.h" /* The only error case is to run out of memory in string-list */
index/resolve-undo.h renamed from resolve-undo.h +0 -0
index/sparse-index.c renamed from sparse-index.c +7 -7
@@ -5,17 +5,17 @@#include "environment.h" #include "ewah/ewok.h" #include "gettext.h" -#include "name-hash.h" -#include "read-cache-ll.h" +#include "index/name-hash.h" +#include "index/read-cache-ll.h" #include "repository.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "odb/tree.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "trace2.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "config.h" -#include "dir.h" -#include "fsmonitor-ll.h" +#include "index/dir.h" +#include "index/fsmonitor-ll.h" #include "advice.h" /**
index/sparse-index.h renamed from sparse-index.h +0 -0
index/split-index.c renamed from split-index.c +2 -2
@@ -4,9 +4,9 @@#include "gettext.h" #include "odb/hash.h" #include "mem-pool.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" -#include "split-index.h" +#include "index/split-index.h" #include "strbuf.h" #include "ewah/ewok.h"
index/split-index.h renamed from split-index.h +0 -0
index/statinfo.c renamed from statinfo.c +1 -1
@@ -2,7 +2,7 @@#include "git-compat-util.h" #include "environment.h" -#include "statinfo.h" +#include "index/statinfo.h" #include "repository.h" /*
index/statinfo.h renamed from statinfo.h +0 -0
index/symlinks.c renamed from symlinks.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "gettext.h" #include "setup.h" -#include "symlinks.h" +#include "index/symlinks.h" static int threaded_check_leading_path (struct cache_def *cache,const char *name,int len,int warn_on_lstat_err);
index/symlinks.h renamed from symlinks.h +0 -0
index/unpack-trees.c renamed from unpack-trees.c +11 -11
@@ -6,30 +6,30 @@#include "strvec.h" #include "repository.h" #include "parse.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h" -#include "name-hash.h" +#include "index/name-hash.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "cache-tree.h" -#include "unpack-trees.h" +#include "index/cache-tree.h" +#include "index/unpack-trees.h" #include "progress.h" #include "refs/refs.h" #include "attr.h" -#include "read-cache.h" -#include "split-index.h" -#include "sparse-index.h" +#include "index/read-cache.h" +#include "index/split-index.h" +#include "index/sparse-index.h" #include "submodule.h" #include "submodule-config.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "trace2.h" -#include "fsmonitor.h" +#include "index/fsmonitor.h" #include "odb/odb.h" #include "promisor-remote.h" -#include "entry.h" -#include "parallel-checkout.h" +#include "index/entry.h" +#include "index/parallel-checkout.h" #include "setup.h" /*
index/unpack-trees.h renamed from unpack-trees.h +1 -1
@@ -2,7 +2,7 @@#define UNPACK_TREES_H #include "convert.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "strvec.h" #include "string-list.h" #include "odb/tree-walk.h"
index/wt-status.c renamed from wt-status.c +4 -4
@@ -3,9 +3,9 @@#include "git-compat-util.h" #include "advice.h" -#include "wt-status.h" +#include "index/wt-status.h" #include "odb/object.h" -#include "dir.h" +#include "index/dir.h" #include "odb/commit.h" #include "diff/diff.h" #include "environment.h"
@@ -24,7 +24,7 @@#include "refs/refs.h" #include "submodule.h" #include "column.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "setup.h" #include "strbuf.h" #include "trace.h"
@@ -34,7 +34,7 @@#include "refs/worktree.h" #include "lockfile.h" #include "sequencer.h" -#include "fsmonitor-settings.h" +#include "index/fsmonitor-settings.h" #define AB_DELAY_WARNING_IN_MS (2 * 1000)#define UF_DELAY_WARNING_IN_MS (2 * 1000)
index/wt-status.h renamed from wt-status.h +1 -1
@@ -3,7 +3,7 @@#include "string-list.h" #include "color.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "remote.h" struct repository ;
merge-ort-wrappers.c +1 -1
@@ -5,7 +5,7 @@#include "lockfile.h" #include "merge-ort.h" #include "merge-ort-wrappers.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "odb/tag.h" #include "odb/tree.h"
merge-ort.c +6 -6
@@ -23,17 +23,17 @@#include "odb/alloc.h" #include "advice.h" #include "attr.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "odb/commit.h" #include "revision/commit-reach.h" #include "config.h" #include "diff/diff.h" #include "diff/diffcore.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h" -#include "entry.h" +#include "index/entry.h" #include "merge-ll.h" #include "odb/match-trees.h" #include "mem-pool.h"
@@ -43,14 +43,14 @@#include "odb/oid-array.h" #include "path.h" #include "promisor-remote.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "refs/refs.h" #include "revision/revision.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "strmap.h" #include "trace2.h" #include "odb/tree.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "diff/xdiff-interface.h" /*
merge.c +2 -2
@@ -9,10 +9,10 @@#include "odb/commit.h" #include "repository.h" #include "run-command.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" static const char *merge_argument (struct commit *commit) {
meson.build +20 -20
@@ -326,10 +326,10 @@ libgit_sources = [ 'branch.c', 'bundle-uri.c', 'bundle.c', - 'cache-tree.c', + 'index/cache-tree.c', 'odb/cbtree.c', 'chdir-notify.c', - 'checkout.c', + 'index/checkout.c', 'pack/chunk-format.c', 'color.c', 'column.c',
@@ -363,10 +363,10 @@ libgit_sources = [ 'diff/diffcore-pickaxe.c', 'diff/diffcore-rename.c', 'diff/diffcore-rotate.c', - 'dir-iterator.c', - 'dir.c', + 'index/dir-iterator.c', + 'index/dir.c', 'editor.c', - 'entry.c', + 'index/entry.c', 'environment.c', 'ewah/bitmap.c', 'ewah/ewah_bitmap.c',
@@ -378,9 +378,9 @@ libgit_sources = [ 'fetch-pack.c', 'fmt-merge-msg.c', 'odb/fsck.c', - 'fsmonitor.c', - 'fsmonitor-ipc.c', - 'fsmonitor-settings.c', + 'index/fsmonitor.c', + 'index/fsmonitor-ipc.c', + 'index/fsmonitor-settings.c', 'gettext.c', 'git-zlib.c', 'gpg-interface.c',
@@ -418,7 +418,7 @@ libgit_sources = [ 'merge.c', 'pack/midx.c', 'pack/midx-write.c', - 'name-hash.c', + 'index/name-hash.c', 'negotiator/default.c', 'negotiator/noop.c', 'negotiator/skipping.c',
@@ -457,7 +457,7 @@ libgit_sources = [ 'pack/packfile.c', 'pack/packfile-list.c', 'pager.c', - 'parallel-checkout.c', + 'index/parallel-checkout.c', 'parse.c', 'parse-options-cb.c', 'parse-options.c',
@@ -465,9 +465,9 @@ libgit_sources = [ 'diff/patch-ids.c', 'path.c', 'path-walk.c', - 'pathspec.c', + 'index/pathspec.c', 'pkt-line.c', - 'preload-index.c', + 'index/preload-index.c', 'revision/pretty.c', 'prio-queue.c', 'progress.c',
@@ -480,7 +480,7 @@ libgit_sources = [ 'quote.c', 'diff/range-diff.c', 'pack/reachable.c', - 'read-cache.c', + 'index/read-cache.c', 'rebase-interactive.c', 'rebase.c', 'refs/ref-filter.c',
@@ -521,7 +521,7 @@ libgit_sources = [ 'repository.c', 'rerere.c', 'reset.c', - 'resolve-undo.c', + 'index/resolve-undo.c', 'revision/revision.c', 'run-command.c', 'send-pack.c',
@@ -532,10 +532,10 @@ libgit_sources = [ 'revision/shallow.c', 'sideband.c', 'sigchain.c', - 'sparse-index.c', - 'split-index.c', + 'index/sparse-index.c', + 'index/split-index.c', 'stable-qsort.c', - 'statinfo.c', + 'index/statinfo.c', 'strbuf.c', 'string-list.c', 'strmap.c',
@@ -543,7 +543,7 @@ libgit_sources = [ 'sub-process.c', 'submodule-config.c', 'submodule.c', - 'symlinks.c', + 'index/symlinks.c', 'odb/tag.c', 'tempfile.c', 'thread-utils.c',
@@ -568,7 +568,7 @@ libgit_sources = [ 'diff/tree-diff.c', 'odb/tree-walk.c', 'odb/tree.c', - 'unpack-trees.c', + 'index/unpack-trees.c', 'upload-pack.c', 'url.c', 'urlmatch.c',
@@ -583,7 +583,7 @@ libgit_sources = [ 'wrapper.c', 'write-or-die.c', 'ws.c', - 'wt-status.c', + 'index/wt-status.c', 'diff/xdiff-interface.c', 'xdiff/xdiffi.c', 'xdiff/xemit.c',
notes-merge.c +1 -1
@@ -16,7 +16,7 @@#include "hex.h" #include "diff/xdiff-interface.h" #include "merge-ll.h" -#include "dir.h" +#include "index/dir.h" #include "notes.h" #include "notes-merge.h" #include "strbuf.h"
odb/commit.c +1 -1
@@ -20,7 +20,7 @@#include "odb/commit-slab.h" #include "prio-queue.h" #include "odb/hash-lookup.h" -#include "wt-status.h" +#include "index/wt-status.h" #include "advice.h" #include "refs/refs.h" #include "revision/commit-reach.h"
odb/fsck.c +1 -1
@@ -1,6 +1,6 @@#include "git-compat-util.h" #include "date.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "hex.h" #include "odb/odb.h"
odb/hash-lookup.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "odb/hash.h" #include "odb/hash-lookup.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" static uint32_t take2 (const struct object_id *oid,size_t ofs) {
odb/object-file.c +2 -2
@@ -11,7 +11,7 @@#include "git-compat-util.h" #include "convert.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "odb/fsck.h" #include "gettext.h"
@@ -25,7 +25,7 @@#include "pack/pack.h" #include "pack/packfile.h" #include "path.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "setup.h" #include "strvec.h" #include "tempfile.h"
odb/object-name.c +2 -2
@@ -14,11 +14,11 @@#include "odb/tree-walk.h" #include "refs/refs.h" #include "remote.h" -#include "dir.h" +#include "index/dir.h" #include "odb/odb.h" #include "odb/oid-array.h" #include "revision/pretty.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repo-settings.h" #include "repository.h" #include "setup.h"
odb/object.c +1 -1
@@ -8,7 +8,7 @@#include "odb/object-file.h" #include "odb/streaming.h" #include "odb/blob.h" -#include "statinfo.h" +#include "index/statinfo.h" #include "odb/tree.h" #include "odb/commit.h" #include "odb/tag.h"
odb/odb.c +1 -1
@@ -2,7 +2,7 @@#include "abspath.h" #include "pack/commit-graph.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h"
odb/source-packed.c +1 -1
@@ -1,7 +1,7 @@#include "git-compat-util.h" #include "abspath.h" #include "chdir-notify.h" -#include "dir.h" +#include "index/dir.h" #include "git-zlib.h" #include "revision/list-objects-filter-options.h" #include "mergesort.h"
odb/tmp-objdir.c +1 -1
@@ -2,7 +2,7 @@#include "odb/tmp-objdir.h" #include "abspath.h" #include "chdir-notify.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "odb/object-file.h" #include "path.h"
odb/tree-walk.c +3 -3
@@ -2,17 +2,17 @@#include "git-compat-util.h" #include "odb/tree-walk.h" -#include "dir.h" +#include "index/dir.h" #include "gettext.h" #include "hex.h" #include "odb/object-file.h" #include "odb/odb.h" #include "trace2.h" #include "odb/tree.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "json-writer.h" #include "environment.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" static int decode_tree_entry (struct tree_desc *desc,const char *buf,unsigned long size,struct strbuf *err) {
organize/gitorganize-format.c +1 -1
@@ -2,7 +2,7 @@#include "gitorganize-format.h" #include "gettext.h" #include "quote.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "strbuf.h" #include "string-list.h" #include "wrapper.h"
organize/organize.c +3 -3
@@ -5,16 +5,16 @@#include "organizer-protocol.h" #include "config.h" #include "gettext.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "quote.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "run-command.h" #include "strbuf.h" #include "string-list.h" #include "strvec.h" #include "wrapper.h" -#include "wt-status.h" +#include "index/wt-status.h" /* The configured command organize.<key> (labeler or organizer), or NULL. */ static const char *organize_command (struct repository *repo,const char *key)
pack/midx.c +1 -1
@@ -2,7 +2,7 @@#include "git-compat-util.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "hex.h" #include "pack/packfile.h" #include "odb/hash-lookup.h"
pack/packfile.c +1 -1
@@ -7,7 +7,7 @@#include "revision/list.h" #include "pack/pack.h" #include "repository.h" -#include "dir.h" +#include "index/dir.h" #include "pack/packfile.h" #include "pack/delta.h" #include "odb/hash-lookup.h"
pack/reachable.c +1 -1
@@ -9,7 +9,7 @@#include "diff/diff.h" #include "revision/revision.h" #include "pack/reachable.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "progress.h" #include "revision/list-objects.h" #include "pack/packfile.h"
pack/repack.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "dir.h" +#include "index/dir.h" #include "pack/midx.h" #include "odb/odb.h" #include "pack/packfile.h"
pack/server-info.c +1 -1
@@ -1,7 +1,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "dir.h" +#include "index/dir.h" #include "hex.h" #include "repository.h" #include "refs/refs.h"
path-walk.c +1 -1
@@ -5,7 +5,7 @@#include "path-walk.h" #include "odb/blob.h" #include "odb/commit.h" -#include "dir.h" +#include "index/dir.h" #include "hashmap.h" #include "hex.h" #include "revision/list-objects.h"
path.c +1 -1
@@ -8,7 +8,7 @@#include "repository.h" #include "strbuf.h" #include "string-list.h" -#include "dir.h" +#include "index/dir.h" #include "refs/worktree.h" #include "setup.h" #include "submodule-config.h"
rebase-interactive.c +1 -1
@@ -11,7 +11,7 @@#include "strbuf.h" #include "odb/commit-slab.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "odb/object-name.h" static const char edit_todo_list_advice[] =
refs/files-backend.c +2 -2
@@ -16,10 +16,10 @@#include "packed-backend.h" #include "../ident.h" #include "../iterator.h" -#include "../dir-iterator.h" +#include "index/dir-iterator.h" #include "../lockfile.h" #include "../path.h" -#include "../dir.h" +#include "index/dir.h" #include "../chdir-notify.h" #include "../setup.h" #include "refs/worktree.h"
refs/packed-backend.c +2 -2
@@ -2,7 +2,7 @@#include "../git-compat-util.h" #include "../config.h" -#include "../dir.h" +#include "index/dir.h" #include "odb/fsck.h" #include "../gettext.h" #include "odb/hash.h"
@@ -13,7 +13,7 @@#include "../iterator.h" #include "../lockfile.h" #include "../chdir-notify.h" -#include "../statinfo.h" +#include "index/statinfo.h" #include "refs/worktree.h" #include "../wrapper.h" #include "../write-or-die.h"
refs/ref-filter.c +1 -1
@@ -28,7 +28,7 @@#include "utf8.h" #include "versioncmp.h" #include "trailer.h" -#include "wt-status.h" +#include "index/wt-status.h" #include "odb/commit-slab.h" #include "revision/commit-reach.h" #include "refs/worktree.h"
refs/reftable-backend.c +1 -1
@@ -2,7 +2,7 @@#include "../abspath.h" #include "../chdir-notify.h" #include "../config.h" -#include "../dir.h" +#include "index/dir.h" #include "../environment.h" #include "odb/fsck.h" #include "../gettext.h"
refs/worktree.c +2 -2
@@ -10,8 +10,8 @@#include "setup.h" #include "strbuf.h" #include "refs/worktree.h" -#include "dir.h" -#include "wt-status.h" +#include "index/dir.h" +#include "index/wt-status.h" #include "config.h" void free_worktree (struct worktree *worktree)
remote.c +1 -1
@@ -18,7 +18,7 @@#include "odb/commit.h" #include "diff/diff.h" #include "revision/revision.h" -#include "dir.h" +#include "index/dir.h" #include "setup.h" #include "string-list.h" #include "strvec.h"
repository.c +2 -2
@@ -9,12 +9,12 @@#include "odb/object.h" #include "lockfile.h" #include "path.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "remote.h" #include "setup.h" #include "odb/loose.h" #include "submodule-config.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "trace2.h" #include "promisor-remote.h" #include "refs/refs.h"
rerere.c +4 -4
@@ -10,14 +10,14 @@#include "hex.h" #include "lockfile.h" #include "string-list.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "rerere.h" #include "diff/xdiff-interface.h" -#include "dir.h" -#include "resolve-undo.h" +#include "index/dir.h" +#include "index/resolve-undo.h" #include "merge-ll.h" #include "path.h" -#include "pathspec.h" +#include "index/pathspec.h" #include "odb/object-file.h" #include "odb/odb.h" #include "strmap.h"
reset.c +2 -2
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "gettext.h" #include "hex.h" #include "lockfile.h"
@@ -8,7 +8,7 @@#include "reset.h" #include "odb/tree-walk.h" #include "odb/tree.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "hook.h" static int update_refs(struct repository *repo,
revision/bisect.c +1 -1
@@ -22,7 +22,7 @@#include "odb/object-name.h" #include "odb/odb.h" #include "path.h" -#include "dir.h" +#include "index/dir.h" static struct oid_array good_revs;static struct oid_array skipped_revs;
revision/blame.c +2 -2
@@ -4,7 +4,7 @@#include "git-compat-util.h" #include "refs/refs.h" #include "odb/odb.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "mergesort.h" #include "odb/commit.h" #include "convert.h"
@@ -13,7 +13,7 @@#include "gettext.h" #include "hex.h" #include "path.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "revision/revision.h" #include "setup.h" #include "odb/tag.h"
revision/list-objects-filter.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "dir.h" +#include "index/dir.h" #include "gettext.h" #include "hex.h" #include "odb/commit.h"
revision/revision.c +4 -4
@@ -29,14 +29,14 @@#include "revision/log-tree.h" #include "mailmap.h" #include "odb/commit-slab.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "revision/bisect.h" #include "pack/packfile.h" #include "refs/worktree.h" #include "path.h" -#include "read-cache.h" +#include "index/read-cache.h" #include "setup.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "strvec.h" #include "trace2.h" #include "revision/commit-reach.h"
@@ -47,7 +47,7 @@#include "pack/bloom.h" #include "json-writer.h" #include "revision/list-objects-filter-options.h" -#include "resolve-undo.h" +#include "index/resolve-undo.h" #include "parse-options.h" #include "wildmatch.h"
revision/shallow.c +1 -1
@@ -18,7 +18,7 @@#include "revision/list-objects.h" #include "revision/commit-reach.h" #include "revision/shallow.h" -#include "statinfo.h" +#include "index/statinfo.h" #include "trace.h" void set_alternate_shallow_file (struct repository *r,const char *path)
run-command.c +1 -1
@@ -7,7 +7,7 @@#include "gettext.h" #include "sigchain.h" #include "strvec.h" -#include "symlinks.h" +#include "index/symlinks.h" #include "thread-utils.h" #include "strbuf.h" #include "string-list.h"
scalar.c +3 -3
@@ -11,10 +11,10 @@#include "config.h" #include "run-command.h" #include "simple-ipc.h" -#include "fsmonitor-ipc.h" -#include "fsmonitor-settings.h" +#include "index/fsmonitor-ipc.h" +#include "index/fsmonitor-settings.h" #include "refs/refs.h" -#include "dir.h" +#include "index/dir.h" #include "pack/packfile.h" #include "help.h" #include "setup.h"
sequencer.c +5 -5
@@ -10,7 +10,7 @@#include "gettext.h" #include "hex.h" #include "lockfile.h" -#include "dir.h" +#include "index/dir.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h"
@@ -21,7 +21,7 @@#include "run-command.h" #include "hook.h" #include "utf8.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "diff/diff.h" #include "path.h" #include "revision/revision.h"
@@ -30,16 +30,16 @@#include "merge-ort.h" #include "merge-ort-wrappers.h" #include "refs/refs.h" -#include "sparse-index.h" +#include "index/sparse-index.h" #include "strvec.h" #include "quote.h" #include "trailer.h" #include "revision/log-tree.h" -#include "wt-status.h" +#include "index/wt-status.h" #include "hashmap.h" #include "notes-utils.h" #include "sigchain.h" -#include "unpack-trees.h" +#include "index/unpack-trees.h" #include "odb/oidmap.h" #include "odb/oidset.h" #include "odb/commit-slab.h"
sequencer.h +1 -1
@@ -3,7 +3,7 @@#include "strbuf.h" #include "strvec.h" -#include "wt-status.h" +#include "index/wt-status.h" struct commit ;struct index_state ;
setup.c +1 -1
@@ -12,7 +12,7 @@#include "refs/refs.h" #include "repository.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "setup.h" #include "revision/shallow.h" #include "string-list.h"
submodule-config.c +1 -1
@@ -2,7 +2,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "gettext.h" #include "hex.h"
submodule.c +2 -2
@@ -7,7 +7,7 @@#include "config.h" #include "submodule-config.h" #include "submodule.h" -#include "dir.h" +#include "index/dir.h" #include "diff/diff.h" #include "odb/commit.h" #include "environment.h"
@@ -29,7 +29,7 @@#include "odb/object-name.h" #include "odb/odb.h" #include "revision/commit-reach.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "setup.h" #include "advice.h" #include "url.h"
t/helper/test-cache-tree.c +2 -2
@@ -5,9 +5,9 @@#include "gettext.h" #include "hex.h" #include "odb/tree.h" -#include "cache-tree.h" +#include "index/cache-tree.h" #include "parse-options.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h"
t/helper/test-dir-iterator.c +1 -1
@@ -2,7 +2,7 @@#include "git-compat-util.h" #include "strbuf.h" #include "iterator.h" -#include "dir-iterator.h" +#include "index/dir-iterator.h" static const char *error_name (int error_number) {
t/helper/test-dump-cache-tree.c +2 -2
@@ -4,8 +4,8 @@#include "odb/hash.h" #include "hex.h" #include "odb/tree.h" -#include "cache-tree.h" -#include "read-cache-ll.h" +#include "index/cache-tree.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h"
t/helper/test-dump-fsmonitor.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "test-tool.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h"
t/helper/test-dump-split-index.c +2 -2
@@ -2,10 +2,10 @@#include "test-tool.h" #include "hex.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h" -#include "split-index.h" +#include "index/split-index.h" #include "ewah/ewok.h" static void show_bit(size_t pos, void *data UNUSED)
t/helper/test-dump-untracked-cache.c +2 -2
@@ -1,9 +1,9 @@#define USE_THE_REPOSITORY_VARIABLE #include "test-tool.h" -#include "dir.h" +#include "index/dir.h" #include "hex.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h"
t/helper/test-fsmonitor-client.c +2 -2
@@ -7,8 +7,8 @@#include "test-tool.h" #include "parse-options.h" -#include "fsmonitor-ipc.h" -#include "read-cache-ll.h" +#include "index/fsmonitor-ipc.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h" #include "thread-utils.h"
t/helper/test-lazy-init-name-hash.c +2 -2
@@ -2,9 +2,9 @@#include "test-tool.h" #include "environment.h" -#include "name-hash.h" +#include "index/name-hash.h" #include "parse-options.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h" #include "trace.h"
t/helper/test-parse-pathspec-file.c +1 -1
@@ -1,6 +1,6 @@#include "test-tool.h" #include "parse-options.h" -#include "pathspec.h" +#include "index/pathspec.h" int cmd__parse_pathspec_file (int argc,const char **argv) {
t/helper/test-path-utils.c +1 -1
@@ -5,7 +5,7 @@#include "abspath.h" #include "environment.h" #include "path.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "setup.h" #include "string-list.h" #include "trace.h"
t/helper/test-path-walk.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "test-tool.h" -#include "dir.h" +#include "index/dir.h" #include "environment.h" #include "hex.h" #include "revision/list-objects-filter-options.h"
t/helper/test-read-cache.c +1 -1
@@ -3,7 +3,7 @@#include "test-tool.h" #include "config.h" #include "environment.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h"
t/helper/test-scrap-cache-tree.c +2 -2
@@ -2,11 +2,11 @@#include "test-tool.h" #include "lockfile.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h" #include "odb/tree.h" -#include "cache-tree.h" +#include "index/cache-tree.h" int cmd__scrap_cache_tree(int ac UNUSED, const char **av UNUSED) {
t/helper/test-write-cache.c +1 -1
@@ -2,7 +2,7 @@#include "test-tool.h" #include "lockfile.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" #include "repository.h" #include "setup.h"
t/unit-tests/test-lib.c +1 -1
@@ -31,7 +31,7 @@ static struct {* There are other compilers that do the same, and are not for * Windows. */ -#include "dir.h" +#include "index/dir.h" static const char *make_relative (const char *location) {
t/unit-tests/u-dir.c +1 -1
@@ -1,5 +1,5 @@#include "unit-test.h" -#include "dir.h" +#include "index/dir.h" #define TEST_WITHIN_DEPTH (path, depth, max_depth, expect) do { \ int actual = within_depth(path, strlen(path), \
t/unit-tests/u-reftable-stack.c +1 -1
@@ -9,7 +9,7 @@ license that can be found in the LICENSE file or at#define DISABLE_SIGN_COMPARE_WARNINGS #include "unit-test.h" -#include "dir.h" +#include "index/dir.h" #include "lib-reftable.h" #include "reftable/merged.h" #include "reftable/reftable-error.h"
t/unit-tests/u-strcmp-offset.c +1 -1
@@ -1,5 +1,5 @@#include "unit-test.h" -#include "read-cache-ll.h" +#include "index/read-cache-ll.h" static void check_strcmp_offset (const char *string1,const char *string2,int expect_result,uintmax_t expect_offset)
trace2/tr2_sysenv.c +1 -1
@@ -2,7 +2,7 @@#include "git-compat-util.h" #include "config.h" -#include "dir.h" +#include "index/dir.h" #include "tr2_sysenv.h" /*
Signature · 1 line
2.54.0
RFC PATCH 13/14 setup: gather the setup sources under setup/
In reply to Michael MontalboMove the 9 setup C sources and 9 headers into setup/ as renames. Repoint every reference to their old paths to the new ones: the #include lines across the tree, the Makefile and meson.build build entries, and the tutorial #include examples.
--- .gitorganize | 36 ++++++++++---------- Documentation/MyFirstContribution.adoc | 4 +-- Documentation/MyFirstObjectWalk.adoc | 2 +- Makefile | 30 ++++++++-------- add-interactive.c | 2 +- add-patch.c | 6 ++-- advice.c | 4 +-- apply.c | 8 ++--- archive-tar.c | 2 +- archive-zip.c | 2 +- archive.c | 6 ++-- attr.c | 6 ++-- branch.c | 6 ++-- builtin.h | 2 +- builtin/add.c | 4 +-- builtin/am.c | 6 ++-- builtin/backfill.c | 6 ++-- builtin/bisect.c | 2 +- builtin/blame.c | 6 ++-- builtin/branch.c | 4 +-- builtin/bugreport.c | 6 ++-- builtin/bundle.c | 2 +- builtin/cat-file.c | 8 ++--- builtin/check-attr.c | 6 ++-- builtin/check-ignore.c | 4 +-- builtin/check-mailmap.c | 6 ++-- builtin/check-ref-format.c | 2 +- builtin/checkout--worker.c | 4 +-- builtin/checkout-index.c | 6 ++-- builtin/checkout.c | 10 +++--- builtin/clean.c | 6 ++-- builtin/clone.c | 8 ++--- builtin/column.c | 2 +- builtin/commit-graph.c | 4 +-- builtin/commit-tree.c | 4 +-- builtin/commit.c | 6 ++-- builtin/config.c | 8 ++--- builtin/count-objects.c | 4 +-- builtin/credential-cache--daemon.c | 2 +- builtin/credential-store.c | 2 +- builtin/credential.c | 4 +-- builtin/describe.c | 6 ++-- builtin/diff-files.c | 2 +- builtin/diff-index.c | 4 +-- builtin/diff-pairs.c | 2 +- builtin/diff-tree.c | 2 +- builtin/diff.c | 4 +-- builtin/difftool.c | 8 ++--- builtin/fast-export.c | 4 +-- builtin/fast-import.c | 4 +-- builtin/fetch.c | 4 +-- builtin/fmt-merge-msg.c | 2 +- builtin/for-each-ref.c | 4 +-- builtin/for-each-repo.c | 4 +-- builtin/fsck.c | 2 +- builtin/fsmonitor--daemon.c | 4 +-- builtin/gc.c | 8 ++--- builtin/grep.c | 6 ++-- builtin/hash-object.c | 6 ++-- builtin/help.c | 8 ++--- builtin/history.c | 4 +-- builtin/hook.c | 6 ++-- builtin/index-pack.c | 6 ++-- builtin/init-db.c | 4 +-- builtin/interpret-trailers.c | 4 +-- builtin/last-modified.c | 6 ++-- builtin/log.c | 6 ++-- builtin/ls-files.c | 6 ++-- builtin/ls-tree.c | 4 +-- builtin/mailinfo.c | 2 +- builtin/merge-base.c | 4 +-- builtin/merge-file.c | 4 +-- builtin/merge-ours.c | 4 +-- builtin/merge-tree.c | 4 +-- builtin/merge.c | 10 +++--- builtin/mktag.c | 2 +- builtin/multi-pack-index.c | 6 ++-- builtin/mv.c | 6 ++-- builtin/name-rev.c | 4 +-- builtin/notes.c | 4 +-- builtin/organize.c | 2 +- builtin/pack-objects.c | 4 +-- builtin/patch-id.c | 6 ++-- builtin/prune.c | 2 +- builtin/pull.c | 4 +-- builtin/push.c | 4 +-- builtin/range-diff.c | 2 +- builtin/read-tree.c | 6 ++-- builtin/rebase.c | 6 ++-- builtin/receive-pack.c | 10 +++--- builtin/reflog.c | 2 +- builtin/refs.c | 2 +- builtin/remote.c | 4 +-- builtin/repack.c | 4 +-- builtin/replace.c | 4 +-- builtin/replay.c | 2 +- builtin/repo.c | 4 +-- builtin/rerere.c | 2 +- builtin/reset.c | 8 ++--- builtin/rev-list.c | 4 +-- builtin/rev-parse.c | 10 +++--- builtin/revert.c | 2 +- builtin/rm.c | 6 ++-- builtin/send-pack.c | 4 +-- builtin/shortlog.c | 6 ++-- builtin/show-branch.c | 4 +-- builtin/show-ref.c | 4 +-- builtin/sparse-checkout.c | 6 ++-- builtin/stash.c | 8 ++--- builtin/stripspace.c | 6 ++-- builtin/submodule--helper.c | 6 ++-- builtin/symbolic-ref.c | 4 +-- builtin/tag.c | 4 +-- builtin/unpack-file.c | 4 +-- builtin/unpack-objects.c | 4 +-- builtin/update-index.c | 6 ++-- builtin/update-ref.c | 4 +-- builtin/update-server-info.c | 4 +-- builtin/upload-archive.c | 2 +- builtin/upload-pack.c | 4 +-- builtin/var.c | 6 ++-- builtin/verify-commit.c | 4 +-- builtin/verify-pack.c | 4 +-- builtin/verify-tag.c | 4 +-- builtin/worktree.c | 6 ++-- builtin/write-tree.c | 4 +-- bundle-uri.c | 2 +- bundle.c | 4 +-- color.c | 2 +- column.c | 2 +- common-init.c | 4 +-- compat/fsmonitor/fsm-health-darwin.c | 2 +- compat/fsmonitor/fsm-health-linux.c | 2 +- compat/fsmonitor/fsm-health-win32.c | 2 +- compat/fsmonitor/fsm-ipc-unix.c | 4 +-- compat/fsmonitor/fsm-ipc-win32.c | 2 +- compat/fsmonitor/fsm-listen-win32.c | 2 +- compat/fsmonitor/fsm-settings-unix.c | 2 +- compat/fsmonitor/fsm-settings-win32.c | 4 +-- compat/mingw.c | 6 ++-- compat/precompose_utf8.c | 4 +-- compat/regex/regex.c | 2 +- compat/win32/path-utils.c | 4 +-- compat/win32/trace2_win32_process_info.c | 2 +- connect.c | 8 ++--- contrib/libgit-sys/public_symbol_export.c | 4 +-- convert.c | 2 +- credential.c | 6 ++-- daemon.c | 6 ++-- diagnose.c | 2 +- diff/combine-diff.c | 2 +- diff/diff-lib.c | 2 +- diff/diff.c | 6 ++-- diff/range-diff.c | 4 +-- diff/tree-diff.c | 2 +- diff/userdiff.c | 4 +-- diff/xdiff-interface.c | 4 +-- editor.c | 4 +-- exec-cmd.c | 2 +- fetch-negotiator.c | 2 +- fetch-pack.c | 8 ++--- fmt-merge-msg.c | 4 +-- gettext.c | 2 +- git.c | 8 ++--- gpg-interface.c | 6 ++-- grep.c | 2 +- help.c | 8 ++--- http-backend.c | 8 ++--- http-fetch.c | 6 ++-- http-push.c | 6 ++-- http-walker.c | 2 +- http.c | 6 ++-- imap-send.c | 6 ++-- index/cache-tree.c | 2 +- index/checkout.c | 4 +-- index/dir.c | 8 ++--- index/entry.c | 2 +- index/fsmonitor-ipc.c | 2 +- index/fsmonitor-settings.c | 4 +-- index/fsmonitor.c | 6 ++-- index/name-hash.c | 2 +- index/parallel-checkout.c | 2 +- index/pathspec.c | 6 ++-- index/preload-index.c | 6 ++-- index/read-cache.c | 8 ++--- index/read-cache.h | 2 +- index/sparse-index.c | 6 ++-- index/split-index.c | 2 +- index/statinfo.c | 4 +-- index/symlinks.c | 2 +- index/unpack-trees.c | 6 ++-- index/wt-status.c | 6 ++-- lockfile.c | 2 +- mailinfo.c | 4 +-- mailmap.c | 6 ++-- merge-ll.c | 2 +- merge-ort-wrappers.c | 2 +- merge-ort.c | 4 +-- merge.c | 2 +- meson.build | 18 +++++----- negotiator/default.c | 2 +- negotiator/skipping.c | 2 +- notes-cache.c | 2 +- notes-merge.c | 2 +- notes-utils.c | 4 +-- notes.c | 4 +-- odb/alloc.c | 2 +- odb/commit.c | 8 ++--- odb/fsck.c | 6 ++-- odb/hash.h | 2 +- odb/loose.c | 2 +- odb/match-trees.c | 2 +- odb/object-file-convert.c | 2 +- odb/object-file.c | 4 +-- odb/object-name.c | 10 +++--- odb/odb.c | 6 ++-- odb/replace-object.c | 2 +- odb/replace-object.h | 2 +- odb/source-files.c | 2 +- odb/source-inmemory.c | 2 +- odb/source-loose.c | 2 +- odb/streaming.c | 4 +-- odb/tag.c | 4 +-- odb/tmp-objdir.c | 4 +-- odb/tree-walk.c | 2 +- odb/tree.c | 4 +-- organize/organize.c | 4 +-- oss-fuzz/fuzz-commit-graph.c | 2 +- oss-fuzz/fuzz-config.c | 2 +- pack/bloom.c | 4 +-- pack/commit-graph.c | 4 +-- pack/delta-islands.c | 2 +- pack/midx-write.c | 2 +- pack/midx.c | 2 +- pack/pack-bitmap-write.c | 4 +-- pack/pack-bitmap.c | 4 +-- pack/pack-check.c | 4 +-- pack/pack-objects.c | 2 +- pack/pack-revindex.c | 2 +- pack/pack-write.c | 4 +-- pack/packfile.c | 4 +-- pack/packfile.h | 2 +- pack/prune-packed.c | 2 +- pack/pseudo-merge.c | 2 +- pack/reachable.c | 2 +- pack/repack-cruft.c | 2 +- pack/repack-filtered.c | 2 +- pack/repack-geometry.c | 2 +- pack/repack-promisor.c | 2 +- pack/repack.c | 2 +- pack/server-info.c | 2 +- pager.c | 8 ++--- parse-options-cb.c | 4 +-- path-walk.c | 2 +- path.c | 4 +-- path.h | 2 +- progress.c | 2 +- promisor-remote.c | 6 ++-- promisor-remote.h | 2 +- prompt.c | 4 +-- protocol-caps.c | 2 +- protocol.c | 4 +-- rebase-interactive.c | 6 ++-- refs/files-backend.c | 10 +++--- refs/ls-refs.c | 6 ++-- refs/pack-refs.c | 4 +-- refs/packed-backend.c | 2 +- refs/ref-cache.c | 2 +- refs/ref-filter.c | 10 +++--- refs/reflog-walk.c | 2 +- refs/reflog.c | 4 +-- refs/refs.c | 12 +++---- refs/refs.h | 4 +-- refs/reftable-backend.c | 10 +++--- refs/worktree.c | 8 ++--- remote-curl.c | 6 ++-- remote.c | 6 ++-- replay.c | 2 +- rerere.c | 4 +-- reset.c | 2 +- reset.h | 2 +- revision/bisect.c | 4 +-- revision/blame.c | 2 +- revision/graph.c | 2 +- revision/line-log.c | 4 +-- revision/list-objects-filter-options.c | 2 +- revision/list-objects.c | 2 +- revision/log-tree.c | 6 ++-- revision/pretty.c | 4 +-- revision/revision.c | 8 ++--- revision/revision.h | 2 +- revision/shallow.c | 2 +- revision/shallow.h | 2 +- run-command.c | 4 +-- scalar.c | 4 +-- send-pack.c | 4 +-- sequencer.c | 8 ++--- serve.c | 6 ++-- alias.c => setup/alias.c | 4 +-- alias.h => setup/alias.h | 0 config.c => setup/config.c | 8 ++--- config.h => setup/config.h | 2 +- environment.c => setup/environment.c | 10 +++--- environment.h => setup/environment.h | 2 +- hook.c => setup/hook.c | 8 ++--- hook.h => setup/hook.h | 2 +- ident.c => setup/ident.c | 4 +-- ident.h => setup/ident.h | 0 repo-settings.c => setup/repo-settings.c | 8 ++--- repo-settings.h => setup/repo-settings.h | 0 repository.c => setup/repository.c | 8 ++--- repository.h => setup/repository.h | 4 +-- setup.c => setup/setup.c | 8 ++--- setup.h => setup/setup.h | 0 version.c => setup/version.c | 2 +- version.h => setup/version.h | 0 shell.c | 2 +- sideband.c | 2 +- submodule-config.c | 6 ++-- submodule-config.h | 2 +- submodule.c | 8 ++--- t/helper/test-advise.c | 6 ++-- t/helper/test-bitmap.c | 2 +- t/helper/test-bloom.c | 4 +-- t/helper/test-cache-tree.c | 4 +-- t/helper/test-config.c | 4 +-- t/helper/test-dump-cache-tree.c | 4 +-- t/helper/test-dump-fsmonitor.c | 4 +-- t/helper/test-dump-split-index.c | 4 +-- t/helper/test-dump-untracked-cache.c | 4 +-- t/helper/test-find-pack.c | 2 +- t/helper/test-fsmonitor-client.c | 4 +-- t/helper/test-lazy-init-name-hash.c | 6 ++-- t/helper/test-match-trees.c | 4 +-- t/helper/test-pack-deltas.c | 2 +- t/helper/test-pack-mtimes.c | 2 +- t/helper/test-partial-clone.c | 4 +-- t/helper/test-path-utils.c | 4 +-- t/helper/test-path-walk.c | 4 +-- t/helper/test-progress.c | 2 +- t/helper/test-reach.c | 2 +- t/helper/test-read-cache.c | 8 ++--- t/helper/test-read-graph.c | 4 +-- t/helper/test-read-midx.c | 4 +-- t/helper/test-ref-store.c | 4 +-- t/helper/test-repository.c | 6 ++-- t/helper/test-revision-walking.c | 4 +-- t/helper/test-scrap-cache-tree.c | 4 +-- t/helper/test-serve-v2.c | 4 +-- t/helper/test-submodule-config.c | 6 ++-- t/helper/test-submodule-nested-repo-config.c | 4 +-- t/helper/test-submodule.c | 4 +-- t/helper/test-subprocess.c | 2 +- t/helper/test-synthesize.c | 4 +-- t/helper/test-trace2.c | 4 +-- t/helper/test-userdiff.c | 4 +-- t/helper/test-write-cache.c | 4 +-- t/unit-tests/u-example-decorate.c | 2 +- t/unit-tests/u-odb-inmemory.c | 2 +- trace.c | 4 +-- trace2.c | 4 +-- trace2/tr2_cfg.c | 2 +- trace2/tr2_sysenv.c | 2 +- trace2/tr2_tgt_event.c | 6 ++-- trace2/tr2_tgt_normal.c | 6 ++-- trace2/tr2_tgt_perf.c | 6 ++-- trailer.c | 4 +-- transport-helper.c | 4 +-- transport.c | 6 ++-- upload-pack.c | 8 ++--- urlmatch.h | 2 +- versioncmp.c | 2 +- walker.c | 2 +- 373 files changed, 798 insertions(+), 798 deletions(-) rename alias.c => setup/alias.c (98%) rename alias.h => setup/alias.h (100%) rename config.c => setup/config.c (99%) rename config.h => setup/config.h (99%) rename environment.c => setup/environment.c (99%) rename environment.h => setup/environment.h (99%) rename hook.c => setup/hook.c (99%) rename hook.h => setup/hook.h (99%) rename ident.c => setup/ident.c (99%) rename ident.h => setup/ident.h (100%) rename repo-settings.c => setup/repo-settings.c (98%) rename repo-settings.h => setup/repo-settings.h (100%) rename repository.c => setup/repository.c (99%) rename repository.h => setup/repository.h (99%) rename setup.c => setup/setup.c (99%) rename setup.h => setup/setup.h (100%) rename version.c => setup/version.c (98%) rename version.h => setup/version.h (100%)
.gitorganize +18 -18
@@ -28,8 +28,6 @@ add-patch.c component=? role=lib prefix=add-patch includes=setup:3,index:2,odb:2 add-patch.h component=? role=public prefix=add-patch cochange=odb:1 advice.c component=? role=lib prefix=advice includes=setup:2 cochange=transport:18,index:12,odb:9,diff:8,revision:8 advice.h component=? role=public prefix=advice cochange=transport:14,index:9,odb:6,submodule:4,pack:3 -alias.c component=setup role=lib prefix=alias includes=setup:2 cochange=setup:8,diff:4,transport:3,convert:2,index:2 -alias.h component=setup role=header prefix=completion cochange=setup:3,transport:2,pack:1,revision:1 apply.c component=? role=lib prefix=apply includes=index:5,setup:4,odb:3,diff:2,merge:2 cochange=index:93,setup:43,diff:41,odb:26,merge:24 apply.h component=? role=public prefix=apply includes=odb:1 cochange=diff:2 archive-tar.c component=archive role=lib prefix=archive-tar includes=archive:1,odb:1,setup:1 cochange=archive:59,index:12,diff:9,odb:9,transport:8
@@ -58,8 +56,6 @@ common-exit.c component=? role=lib prefix=common-main common-init.c component=? role=lib prefix=common-main includes=odb:2,setup:2,convert:1 cochange=setup:1 common-init.h component=? role=public prefix=common-main common-main.c component=? role=lib prefix=common-main cochange=setup:5,transport:4,convert:3,index:1 -config.c component=setup role=lib prefix=config includes=setup:4,odb:2,convert:1,index:1,refs:1 cochange=setup:274,index:93,diff:75,refs:48,revision:46 -config.h component=setup role=header prefix=config includes=setup:1 cochange=setup:100,index:30,transport:23,submodule:21,merge:6 connect.c component=transport role=lib prefix=connect includes=transport:7,setup:4,odb:1,refs:1 cochange=transport:238,setup:19,diff:13,index:10,refs:10 connect.h component=transport role=header prefix=connect includes=transport:1 cochange=transport:58,refs:1 connected.c component=transport role=lib prefix=connected includes=transport:3,odb:1,pack:1 cochange=transport:39,pack:31,odb:7,diff:6,index:5
@@ -103,8 +99,6 @@ diff/xdiff-interface.c component=diff role=lib prefix=xdiff-interface includes=s diff/xdiff-interface.h component=diff role=header prefix=xdiff-interface includes=odb:1 cochange=diff:62,index:2,notes:2,merge:1,odb:1 editor.c component=? role=lib prefix=editor includes=setup:2 cochange=transport:20,setup:12,index:8,odb:4,submodule:4 editor.h component=? role=public prefix=editor cochange=transport:1 -environment.c component=setup role=lib prefix=environment includes=setup:5,convert:3,odb:2,merge:1,refs:1 cochange=setup:281,index:77,odb:48,refs:36,transport:28 -environment.h component=setup role=header prefix=environment includes=setup:1 cochange=setup:135,index:37,odb:15,refs:11,pack:9 exec-cmd.c component=? role=lib prefix=strvec includes=setup:1 exec-cmd.h component=? role=public prefix=argv-array cochange=refs:4,transport:4,odb:1,setup:1,submodule:1 fetch-negotiator.c component=transport role=lib prefix=repo-settings includes=setup:1,transport:1 cochange=setup:8,transport:7,index:2,odb:1
@@ -135,16 +129,12 @@ hex-ll.c component=? role=lib prefix=hex-ll hex-ll.h component=? role=public prefix=hex-ll hex.c component=? role=lib prefix=hex includes=odb:1 cochange=odb:7,revision:5,notes:3,transport:3,refs:2 hex.h component=? role=public prefix=hex includes=odb:1 cochange=revision:3,odb:2,convert:1,merge:1,pack:1 -hook.c component=setup role=lib prefix=hook includes=setup:4 cochange=setup:37,transport:10,odb:8,refs:5,diff:3 -hook.h component=setup role=header prefix=hook includes=setup:1 cochange=setup:34,transport:6,odb:5,refs:5,pack:3 http-backend.c component=? role=program prefix=http-backend includes=setup:4,odb:3,transport:2,pack:1,refs:1 cochange=transport:57,pack:41,setup:19,refs:14,revision:13 http-fetch.c component=? role=program prefix=http-fetch includes=setup:3,transport:2 cochange=transport:46,setup:10,pack:9,index:7,refs:7 http-push.c component=? role=program prefix=http-push includes=odb:7,revision:3,setup:3,transport:2,diff:1 cochange=transport:272,odb:134,revision:82,pack:60,diff:34 http-walker.c component=transport role=lib prefix=http includes=transport:3,odb:2,pack:1,revision:1,setup:1 cochange=transport:73,pack:40,odb:17,index:11,refs:7 http.c component=transport role=lib prefix=http includes=transport:4,setup:3,odb:2,pack:2 cochange=transport:195,pack:71,odb:27,diff:8,setup:8 http.h component=transport role=header prefix=http includes=transport:1 cochange=transport:149,pack:15,diff:6,odb:4,archive:3 -ident.c component=setup role=lib prefix=ident includes=setup:2 cochange=setup:19,revision:10,odb:6,refs:6,pack:4 -ident.h component=setup role=header prefix=ident cochange=setup:3,revision:1 imap-send.c component=? role=program prefix=imap-send includes=setup:3,transport:1 cochange=transport:47,diff:16,index:16,refs:9,odb:8 index/cache-tree.c component=index role=lib prefix=cache-tree includes=odb:5,index:2,setup:1,transport:1 cochange=index:94,odb:69,revision:27,transport:21,diff:20 index/cache-tree.h component=index role=header prefix=cache-tree includes=odb:2 cochange=index:42,diff:4,revision:4,odb:3,refs:1
@@ -373,10 +363,6 @@ remote.c component=transport role=lib prefix=remote includes=odb:3,setup:3,trans remote.h component=transport role=header prefix=remote includes=odb:1,refs:1 cochange=transport:245,refs:24,index:12,revision:6,setup:2 replay.c component=? role=lib prefix=replay includes=odb:2,merge:1,refs:1,revision:1,setup:1 cochange=transport:1 replay.h component=? role=public prefix=replay includes=odb:1 -repo-settings.c component=setup role=lib prefix=repo-settings includes=setup:4,pack:2 cochange=setup:65,pack:17,index:8,transport:8,odb:6 -repo-settings.h component=setup role=header prefix=environment cochange=setup:40,pack:7,refs:6,odb:4,diff:2 -repository.c component=setup role=lib prefix=repository includes=setup:4,odb:3,index:2,transport:2,refs:1 cochange=setup:141,odb:39,index:27,refs:18,submodule:17 -repository.h component=setup role=header prefix=repository includes=setup:2 cochange=setup:157,index:31,refs:25,pack:22,odb:19 rerere.c component=merge role=lib prefix=rerere includes=index:4,merge:2,odb:2,setup:2,diff:1 cochange=index:54,merge:29,pack:26,odb:25,transport:25 rerere.h component=merge role=header prefix=rerere cochange=merge:16,odb:1 reset.c component=? role=lib prefix=reset includes=odb:3,index:2,refs:1,setup:1 cochange=index:9,merge:5,odb:3,notes:2,revision:2
@@ -420,8 +406,24 @@ sequencer.c component=? role=lib prefix=sequencer includes=odb:8,index:5,merge:4 sequencer.h component=? role=public prefix=sequencer includes=index:1 cochange=revision:5,index:4,notes:3,odb:3,transport:3 serve.c component=transport role=lib prefix=serve includes=transport:6,setup:3,odb:1,refs:1 cochange=transport:53,refs:7,odb:4,setup:3,index:1 serve.h component=transport role=header prefix=serve cochange=transport:9,refs:3,submodule:1 -setup.c component=setup role=lib prefix=setup includes=setup:4,odb:2,refs:2,index:1,revision:1 cochange=setup:177,refs:47,transport:44,index:39,odb:24 -setup.h component=setup role=header prefix=setup includes=refs:1 cochange=setup:70,refs:8,index:5,revision:4,submodule:4 +setup/alias.c component=setup role=lib prefix=alias includes=setup:2 cochange=setup:8,diff:4,transport:3,convert:2,index:2 +setup/alias.h component=setup role=header prefix=completion cochange=setup:3,transport:2,pack:1,revision:1 +setup/config.c component=setup role=lib prefix=config includes=setup:4,odb:2,convert:1,index:1,refs:1 cochange=setup:274,index:93,diff:75,refs:48,revision:46 +setup/config.h component=setup role=header prefix=config includes=setup:1 cochange=setup:100,index:30,transport:23,submodule:21,merge:6 +setup/environment.c component=setup role=lib prefix=environment includes=setup:5,convert:3,odb:2,merge:1,refs:1 cochange=setup:281,index:77,odb:48,refs:36,transport:28 +setup/environment.h component=setup role=header prefix=environment includes=setup:1 cochange=setup:135,index:37,odb:15,refs:11,pack:9 +setup/hook.c component=setup role=lib prefix=hook includes=setup:4 cochange=setup:37,transport:10,odb:8,refs:5,diff:3 +setup/hook.h component=setup role=header prefix=hook includes=setup:1 cochange=setup:34,transport:6,odb:5,refs:5,pack:3 +setup/ident.c component=setup role=lib prefix=ident includes=setup:2 cochange=setup:19,revision:10,odb:6,refs:6,pack:4 +setup/ident.h component=setup role=header prefix=ident cochange=setup:3,revision:1 +setup/repo-settings.c component=setup role=lib prefix=repo-settings includes=setup:4,pack:2 cochange=setup:65,pack:17,index:8,transport:8,odb:6 +setup/repo-settings.h component=setup role=header prefix=environment cochange=setup:40,pack:7,refs:6,odb:4,diff:2 +setup/repository.c component=setup role=lib prefix=repository includes=setup:4,odb:3,index:2,transport:2,refs:1 cochange=setup:141,odb:39,index:27,refs:18,submodule:17 +setup/repository.h component=setup role=header prefix=repository includes=setup:2 cochange=setup:157,index:31,refs:25,pack:22,odb:19 +setup/setup.c component=setup role=lib prefix=setup includes=setup:4,odb:2,refs:2,index:1,revision:1 cochange=setup:177,refs:47,transport:44,index:39,odb:24 +setup/setup.h component=setup role=header prefix=setup includes=refs:1 cochange=setup:70,refs:8,index:5,revision:4,submodule:4 +setup/version.c component=setup role=lib prefix=version includes=setup:1 cochange=setup:8,transport:2 +setup/version.h component=setup role=header prefix=version cochange=setup:8,transport:2 sh-i18n--envsubst.c component=? role=program prefix=sh-i18n--envsubst cochange=index:3,diff:1,transport:1 sha1dc_git.c component=? role=lib prefix=sha1dc cochange=diff:3,odb:2,revision:2,setup:1 sha1dc_git.h component=? role=public prefix=sha1dc cochange=odb:2
@@ -478,8 +480,6 @@ utf8.c component=? role=lib prefix=utf8 cochange=revision:6,index:3,setup:3,tran utf8.h component=? role=public prefix=utf8 cochange=revision:6,index:2,setup:2,transport:2,convert:1 varint.c component=? role=lib prefix=varint cochange=index:2,transport:1 varint.h component=? role=public prefix=varint cochange=index:2,transport:1 -version.c component=setup role=lib prefix=version includes=setup:1 cochange=setup:8,transport:2 -version.h component=setup role=header prefix=version cochange=setup:8,transport:2 versioncmp.c component=? role=lib prefix=versioncmp includes=setup:1 cochange=setup:5,pack:3,transport:3,index:2,refs:2 versioncmp.h component=? role=public prefix=versioncmp cochange=refs:1 walker.c component=transport role=lib prefix=refs includes=odb:6,refs:1,setup:1,transport:1 cochange=odb:70,transport:55,revision:42,refs:24,pack:17
Documentation/MyFirstContribution.adoc +2 -2
@@ -331,8 +331,8 @@ on the command line, including the name of our command. (If `prefix` is empty for you, try `cd Documentation/ && ../bin-wrappers/git psuh`). That's not so helpful. So what other context can we get? -Add a line to `#include "config.h"`, `#include "repository.h"` and -`#include "environment.h"`. +Add a line to `#include "setup/config.h"`, `#include "setup/repository.h"` and +`#include "setup/environment.h"`. Then, add the following bits to the function body: function body:
Documentation/MyFirstObjectWalk.adoc +1 -1
@@ -219,7 +219,7 @@ Add a new function to `builtin/walken.c`. We'll also need to include the `config.h` header: ---- -#include "config.h" +#include "setup/config.h" ...
Makefile +15 -15
@@ -1102,7 +1102,7 @@ LIB_OBJS += abspath.o LIB_OBJS += add-interactive.o LIB_OBJS += add-patch.o LIB_OBJS += advice.o -LIB_OBJS += alias.o +LIB_OBJS += setup/alias.o LIB_OBJS += odb/alloc.o LIB_OBJS += apply.o LIB_OBJS += archive-tar.o
@@ -1135,7 +1135,7 @@ LIB_OBJS += compat/obstack.o LIB_OBJS += compat/open.o LIB_OBJS += compat/terminal.o LIB_OBJS += compiler-tricks/not-constant.o -LIB_OBJS += config.o +LIB_OBJS += setup/config.o LIB_OBJS += connect.o LIB_OBJS += connected.o LIB_OBJS += convert.o
@@ -1162,7 +1162,7 @@ LIB_OBJS += index/dir-iterator.o LIB_OBJS += index/dir.o LIB_OBJS += editor.o LIB_OBJS += index/entry.o -LIB_OBJS += environment.o +LIB_OBJS += setup/environment.o LIB_OBJS += ewah/bitmap.o LIB_OBJS += ewah/ewah_bitmap.o LIB_OBJS += ewah/ewah_io.o
@@ -1187,8 +1187,8 @@ LIB_OBJS += hashmap.o LIB_OBJS += help.o LIB_OBJS += hex.o LIB_OBJS += hex-ll.o -LIB_OBJS += hook.o -LIB_OBJS += ident.o +LIB_OBJS += setup/hook.o +LIB_OBJS += setup/ident.o LIB_OBJS += json-writer.o LIB_OBJS += kwset.o LIB_OBJS += levenshtein.o
@@ -1312,8 +1312,8 @@ LIB_OBJS += pack/repack-midx.o LIB_OBJS += pack/repack-promisor.o LIB_OBJS += odb/replace-object.o LIB_OBJS += replay.o -LIB_OBJS += repo-settings.o -LIB_OBJS += repository.o +LIB_OBJS += setup/repo-settings.o +LIB_OBJS += setup/repository.o LIB_OBJS += rerere.o LIB_OBJS += reset.o LIB_OBJS += index/resolve-undo.o
@@ -1323,7 +1323,7 @@ LIB_OBJS += send-pack.o LIB_OBJS += sequencer.o LIB_OBJS += serve.o LIB_OBJS += pack/server-info.o -LIB_OBJS += setup.o +LIB_OBJS += setup/setup.o LIB_OBJS += revision/shallow.o LIB_OBJS += sideband.o LIB_OBJS += sigchain.o
@@ -1373,7 +1373,7 @@ LIB_OBJS += utf8.o ifdef NO_RUST LIB_OBJS += varint.o endif -LIB_OBJS += version.o +LIB_OBJS += setup/version.o LIB_OBJS += versioncmp.o LIB_OBJS += walker.o LIB_OBJS += wildmatch.o
@@ -2691,7 +2691,7 @@ git$X: git.o GIT-LDFLAGS $(BUILTIN_OBJS) $(GITLIBS) help.sp help.s help.o: command-list.h builtin/bugreport.sp builtin/bugreport.s builtin/bugreport.o: hook-list.h -hook.sp hook.s hook.o: hook-list.h +setup/hook.sp setup/hook.s setup/hook.o: hook-list.h builtin/help.sp builtin/help.s builtin/help.o: config-list.h GIT-PREFIX builtin/help.sp builtin/help.s builtin/help.o: EXTRA_CPPFLAGS = \
@@ -2708,7 +2708,7 @@ pager.sp pager.s pager.o: EXTRA_CPPFLAGS = \ version-def.h: version-def.h.in GIT-VERSION-GEN GIT-VERSION-FILE GIT-USER-AGENT $(QUIET_GEN)$(call version_gen,"$(shell pwd)",$<,$@) -version.sp version.s version.o: version-def.h +setup/version.sp setup/version.s setup/version.o: version-def.h $(BUILT_INS): git$X $(QUIET_BUILT_IN)$(RM) $@ && \
@@ -2973,12 +2973,12 @@ exec-cmd.sp exec-cmd.s exec-cmd.o: EXTRA_CPPFLAGS = \ '-DBINDIR="$(bindir_relative_SQ)"' \ '-DFALLBACK_RUNTIME_PREFIX="$(prefix_SQ)"' -setup.sp setup.s setup.o: GIT-PREFIX -setup.sp setup.s setup.o: EXTRA_CPPFLAGS = \ +setup/setup.sp setup/setup.s setup/setup.o: GIT-PREFIX +setup/setup.sp setup/setup.s setup/setup.o: EXTRA_CPPFLAGS = \ -DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir_SQ)"' -config.sp config.s config.o: GIT-PREFIX -config.sp config.s config.o: EXTRA_CPPFLAGS = \ +setup/config.sp setup/config.s setup/config.o: GIT-PREFIX +setup/config.sp setup/config.s setup/config.o: EXTRA_CPPFLAGS = \ -DETC_GITCONFIG='"$(ETC_GITCONFIG_SQ)"' attr.sp attr.s attr.o: GIT-PREFIX
add-interactive.c +1 -1
@@ -9,7 +9,7 @@#include "hex.h" #include "index/preload-index.h" #include "index/read-cache-ll.h" -#include "repository.h" +#include "setup/repository.h" #include "revision/revision.h" #include "refs/refs.h" #include "string-list.h"
add-patch.c +3 -3
@@ -5,16 +5,16 @@#include "add-patch.h" #include "advice.h" #include "odb/commit.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-name.h" #include "pager.h" #include "index/read-cache-ll.h" -#include "repository.h" +#include "setup/repository.h" #include "strbuf.h" #include "sigchain.h" #include "run-command.h"
advice.c +2 -2
@@ -1,8 +1,8 @@#include "git-compat-util.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "color.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "help.h" #include "string-list.h"
apply.c +4 -4
@@ -13,12 +13,12 @@#include "git-compat-util.h" #include "abspath.h" #include "base85.h" -#include "config.h" +#include "setup/config.h" #include "odb/odb.h" #include "pack/delta.h" #include "diff/diff.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "diff/xdiff-interface.h"
@@ -31,11 +31,11 @@#include "path.h" #include "quote.h" #include "index/read-cache.h" -#include "repository.h" +#include "setup/repository.h" #include "rerere.h" #include "apply.h" #include "index/entry.h" -#include "setup.h" +#include "setup/setup.h" #include "index/symlinks.h" #include "wildmatch.h" #include "ws.h"
archive-tar.c +1 -1
@@ -5,7 +5,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" #include "git-zlib.h" #include "hex.h"
archive-zip.c +1 -1
@@ -5,7 +5,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "archive.h" #include "gettext.h" #include "git-zlib.h"
archive.c +3 -3
@@ -3,16 +3,16 @@#include "git-compat-util.h" #include "abspath.h" -#include "config.h" +#include "setup/config.h" #include "convert.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "git-zlib.h" #include "hex.h" #include "odb/object-name.h" #include "path.h" #include "revision/pretty.h" -#include "setup.h" +#include "setup/setup.h" #include "refs/refs.h" #include "odb/odb.h" #include "odb/commit.h"
attr.c +3 -3
@@ -10,8 +10,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "exec-cmd.h" #include "attr.h" #include "index/dir.h"
@@ -23,7 +23,7 @@#include "refs/refs.h" #include "revision/revision.h" #include "odb/odb.h" -#include "setup.h" +#include "setup/setup.h" #include "thread-utils.h" #include "odb/tree-walk.h" #include "odb/object-name.h"
branch.c +3 -3
@@ -2,9 +2,9 @@#include "git-compat-util.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "branch.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-name.h"
@@ -12,7 +12,7 @@#include "refs/refs.h" #include "refs/refspec.h" #include "remote.h" -#include "repository.h" +#include "setup/repository.h" #include "sequencer.h" #include "odb/commit.h" #include "refs/worktree.h"
builtin.h +1 -1
@@ -2,7 +2,7 @@#define BUILTIN_H #include "git-compat-util.h" -#include "repository.h" +#include "setup/repository.h" /* * builtin API
builtin/add.c +2 -2
@@ -6,8 +6,8 @@#include "builtin.h" #include "advice.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "lockfile.h" #include "editor.h" #include "index/dir.h"
builtin/am.c +3 -3
@@ -9,15 +9,15 @@#include "builtin.h" #include "abspath.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "parse-options.h" #include "index/dir.h" #include "run-command.h" -#include "hook.h" +#include "setup/hook.h" #include "quote.h" #include "tempfile.h" #include "lockfile.h"
builtin/backfill.c +3 -3
@@ -3,12 +3,12 @@#include "builtin.h" #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "parse-options.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/commit.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "hex.h" #include "odb/tree.h" #include "odb/tree-walk.h"
builtin/bisect.c +1 -1
@@ -3,7 +3,7 @@#include "builtin.h" #include "copy.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-name.h"
builtin/blame.c +3 -3
@@ -8,9 +8,9 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "color.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/commit.h"
@@ -31,7 +31,7 @@#include "pager.h" #include "revision/blame.h" #include "refs/refs.h" -#include "setup.h" +#include "setup/setup.h" #include "odb/tag.h" #include "write-or-die.h"
builtin/branch.c +2 -2
@@ -8,10 +8,10 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "color.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "refs/refs.h" #include "odb/commit.h" #include "gettext.h"
builtin/bugreport.c +3 -3
@@ -8,11 +8,11 @@#include "strbuf.h" #include "help.h" #include "compat/compiler.h" -#include "hook.h" +#include "setup/hook.h" #include "hook-list.h" #include "diagnose.h" -#include "setup.h" -#include "version.h" +#include "setup/setup.h" +#include "setup/version.h" static void get_system_info (struct strbuf *sys_info) {
builtin/bundle.c +1 -1
@@ -2,7 +2,7 @@#include "builtin.h" #include "abspath.h" #include "gettext.h" -#include "setup.h" +#include "setup/setup.h" #include "strvec.h" #include "parse-options.h" #include "pkt-line.h"
builtin/cat-file.c +4 -4
@@ -8,13 +8,13 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "convert.h" #include "diff/diff.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" -#include "ident.h" +#include "setup/ident.h" #include "revision/list-objects-filter-options.h" #include "parse-options.h" #include "diff/userdiff.h"
@@ -28,7 +28,7 @@#include "promisor-remote.h" #include "mailmap.h" #include "write-or-die.h" -#include "alias.h" +#include "setup/alias.h" #include "remote.h" #include "transport.h"
builtin/check-attr.c +3 -3
@@ -1,12 +1,12 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "attr.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/object-name.h" #include "quote.h" -#include "setup.h" +#include "setup/setup.h" #include "parse-options.h" #include "write-or-die.h"
builtin/check-ignore.c +2 -2
@@ -1,8 +1,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "quote.h" #include "index/pathspec.h"
builtin/check-mailmap.c +3 -3
@@ -1,9 +1,9 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" -#include "ident.h" +#include "setup/ident.h" #include "mailmap.h" #include "parse-options.h" #include "strbuf.h"
builtin/check-ref-format.c +1 -1
@@ -6,7 +6,7 @@#include "builtin.h" #include "refs/refs.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" static const char builtin_check_ref_format_usage[] =
builtin/checkout--worker.c +2 -2
@@ -2,9 +2,9 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "index/entry.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "index/parallel-checkout.h" #include "parse-options.h"
builtin/checkout-index.c +3 -3
@@ -8,8 +8,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "lockfile.h" #include "quote.h"
@@ -18,7 +18,7 @@#include "index/entry.h" #include "index/parallel-checkout.h" #include "index/read-cache-ll.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #define CHECKOUT_ALL 4
builtin/checkout.c +5 -5
@@ -7,13 +7,13 @@#include "index/cache-tree.h" #include "index/checkout.h" #include "odb/commit.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" -#include "hook.h" +#include "setup/hook.h" #include "merge-ll.h" #include "lockfile.h" #include "mem-pool.h"
@@ -26,11 +26,11 @@#include "index/read-cache.h" #include "refs/refs.h" #include "remote.h" -#include "repo-settings.h" +#include "setup/repo-settings.h" #include "index/resolve-undo.h" #include "revision/revision.h" #include "sequencer.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "strvec.h" #include "submodule.h"
builtin/clean.c +3 -3
@@ -11,14 +11,14 @@#include "builtin.h" #include "abspath.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "parse-options.h" #include "path.h" #include "index/read-cache-ll.h" -#include "setup.h" +#include "setup/setup.h" #include "string-list.h" #include "quote.h" #include "column.h"
builtin/clone.c +4 -4
@@ -15,9 +15,9 @@#include "abspath.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "copy.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "lockfile.h"
@@ -38,13 +38,13 @@#include "branch.h" #include "remote.h" #include "run-command.h" -#include "setup.h" +#include "setup/setup.h" #include "connected.h" #include "pack/packfile.h" #include "path.h" #include "pkt-line.h" #include "revision/list-objects-filter-options.h" -#include "hook.h" +#include "setup/hook.h" #include "bundle.h" #include "bundle-uri.h"
builtin/column.c +1 -1
@@ -1,6 +1,6 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" #include "strbuf.h" #include "parse-options.h"
builtin/commit-graph.c +2 -2
@@ -1,8 +1,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "odb/commit.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "parse-options.h"
builtin/commit-tree.c +2 -2
@@ -5,8 +5,8 @@*/ #define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-name.h"
builtin/commit.c +3 -3
@@ -10,13 +10,13 @@#include "builtin.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "lockfile.h" #include "index/cache-tree.h" #include "color.h" #include "index/dir.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "diff/diff.h" #include "odb/commit.h" #include "add-interactive.h"
@@ -30,7 +30,7 @@#include "path.h" #include "index/preload-index.h" #include "index/read-cache.h" -#include "repository.h" +#include "setup/repository.h" #include "string-list.h" #include "rerere.h" #include "index/unpack-trees.h"
builtin/config.c +4 -4
@@ -2,18 +2,18 @@#include "builtin.h" #include "abspath.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "color.h" #include "date.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" -#include "ident.h" +#include "setup/ident.h" #include "parse-options.h" #include "urlmatch.h" #include "path.h" #include "quote.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" #include "refs/worktree.h"
builtin/count-objects.c +2 -2
@@ -5,9 +5,9 @@*/ #define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "path.h" #include "parse-options.h"
builtin/credential-cache--daemon.c +1 -1
@@ -7,7 +7,7 @@#ifndef NO_UNIX_SOCKETS -#include "config.h" +#include "setup/config.h" #include "tempfile.h" #include "credential.h" #include "unix-socket.h"
builtin/credential-store.c +1 -1
@@ -1,6 +1,6 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" #include "lockfile.h" #include "credential.h"
builtin/credential.c +2 -2
@@ -3,8 +3,8 @@#include "git-compat-util.h" #include "credential.h" #include "builtin.h" -#include "environment.h" -#include "config.h" +#include "setup/environment.h" +#include "setup/config.h" static const char usage_msg[] ="git credential (fill|approve|reject)" ;
builtin/describe.c +3 -3
@@ -2,8 +2,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "lockfile.h"
@@ -16,7 +16,7 @@#include "revision/revision.h" #include "diff/diff.h" #include "hashmap.h" -#include "setup.h" +#include "setup/setup.h" #include "strvec.h" #include "run-command.h" #include "odb/odb.h"
builtin/diff-files.c +1 -1
@@ -8,7 +8,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" #include "diff/diff-merges.h" #include "odb/commit.h"
builtin/diff-index.c +2 -2
@@ -2,13 +2,13 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" #include "diff/diff-merges.h" #include "odb/commit.h" #include "index/preload-index.h" #include "revision/revision.h" -#include "setup.h" +#include "setup/setup.h" static const char diff_cache_usage[] ="git diff-index [-m] [--cached] [--merge-base] "
builtin/diff-pairs.c +1 -1
@@ -1,5 +1,5 @@#include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" #include "diff/diffcore.h" #include "gettext.h"
builtin/diff-tree.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" #include "odb/commit.h" #include "gettext.h"
builtin/diff.c +2 -2
@@ -8,7 +8,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "ewah/ewok.h" #include "lockfile.h" #include "color.h"
@@ -22,7 +22,7 @@#include "index/read-cache-ll.h" #include "revision/revision.h" #include "revision/log-tree.h" -#include "setup.h" +#include "setup/setup.h" #include "odb/oid-array.h" #include "odb/tree.h"
builtin/difftool.c +4 -4
@@ -15,16 +15,16 @@#include "builtin.h" #include "abspath.h" -#include "config.h" +#include "setup/config.h" #include "copy.h" #include "run-command.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "parse-options.h" #include "path.h" #include "index/read-cache-ll.h" -#include "repository.h" +#include "setup/repository.h" #include "index/sparse-index.h" #include "strvec.h" #include "strbuf.h"
@@ -33,7 +33,7 @@#include "odb/odb.h" #include "index/dir.h" #include "index/entry.h" -#include "setup.h" +#include "setup/setup.h" static const char *const builtin_difftool_usage[] = {N_ ("git difftool [<options>] [<commit> [<commit>]] [--] [<path>...]" ),
builtin/fast-export.c +2 -2
@@ -8,8 +8,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "refs/refs.h"
builtin/fast-import.c +2 -2
@@ -3,10 +3,10 @@#include "builtin.h" #include "abspath.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" -#include "config.h" +#include "setup/config.h" #include "lockfile.h" #include "odb/object.h" #include "odb/blob.h"
builtin/fetch.c +2 -2
@@ -7,9 +7,9 @@#include "builtin.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" -#include "environment.h" +#include "setup/environment.h" #include "hex.h" #include "refs/refs.h" #include "refs/refspec.h"
builtin/fmt-merge-msg.c +1 -1
@@ -1,5 +1,5 @@#include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "fmt-merge-msg.h" #include "gettext.h" #include "parse-options.h"
builtin/for-each-ref.c +2 -2
@@ -1,7 +1,7 @@#include "builtin.h" #include "odb/commit.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "for-each-ref.h" #include "gettext.h" #include "odb/object.h"
builtin/for-each-repo.c +2 -2
@@ -1,8 +1,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "parse-options.h" #include "path.h"
builtin/fsck.c +1 -1
@@ -1,7 +1,7 @@#include "builtin.h" #include "gettext.h" #include "hex.h" -#include "config.h" +#include "setup/config.h" #include "odb/commit.h" #include "odb/tree.h" #include "odb/blob.h"
builtin/fsmonitor--daemon.c +2 -2
@@ -3,9 +3,9 @@#include "builtin.h" #include "abspath.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "parse-options.h" #include "index/fsmonitor-ll.h"
builtin/gc.c +4 -4
@@ -17,9 +17,9 @@#include "abspath.h" #include "date.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "hex.h" -#include "config.h" +#include "setup/config.h" #include "tempfile.h" #include "lockfile.h" #include "parse-options.h"
@@ -39,8 +39,8 @@#include "remote.h" #include "exec-cmd.h" #include "gettext.h" -#include "hook.h" -#include "setup.h" +#include "setup/hook.h" +#include "setup/setup.h" #include "trace2.h" #include "refs/worktree.h"
builtin/grep.c +3 -3
@@ -9,10 +9,10 @@#include "builtin.h" #include "abspath.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" -#include "config.h" +#include "setup/config.h" #include "odb/tag.h" #include "odb/tree-walk.h" #include "parse-options.h"
@@ -22,7 +22,7 @@#include "quote.h" #include "index/dir.h" #include "index/pathspec.h" -#include "setup.h" +#include "setup/setup.h" #include "submodule.h" #include "submodule-config.h" #include "odb/object-name.h"
builtin/hash-object.c +3 -3
@@ -7,8 +7,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "abspath.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-file.h"
@@ -16,7 +16,7 @@#include "odb/blob.h" #include "quote.h" #include "parse-options.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" #include "write-or-die.h"
builtin/help.c +4 -4
@@ -5,8 +5,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "exec-cmd.h" #include "gettext.h" #include "pager.h"
@@ -15,8 +15,8 @@#include "run-command.h" #include "config-list.h" #include "help.h" -#include "alias.h" -#include "setup.h" +#include "setup/alias.h" +#include "setup/setup.h" #ifndef DEFAULT_HELP_FORMAT #define DEFAULT_HELP_FORMAT "man"
builtin/history.c +2 -2
@@ -4,9 +4,9 @@#include "index/cache-tree.h" #include "odb/commit.h" #include "revision/commit-reach.h" -#include "config.h" +#include "setup/config.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "lockfile.h"
builtin/hook.c +3 -3
@@ -1,9 +1,9 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" -#include "hook.h" +#include "setup/hook.h" #include "parse-options.h" #include "thread-utils.h"
builtin/index-pack.c +3 -3
@@ -2,9 +2,9 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "pack/delta.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "pack/pack.h"
@@ -29,7 +29,7 @@#include "odb/tree-walk.h" #include "promisor-remote.h" #include "run-command.h" -#include "setup.h" +#include "setup/setup.h" #include "strvec.h" static const char index_pack_usage[] =
builtin/init-db.c +2 -2
@@ -6,12 +6,12 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "abspath.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "parse-options.h" #include "path.h" #include "refs/refs.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" static int guess_repository_type (const char *git_dir)
builtin/interpret-trailers.c +2 -2
@@ -6,13 +6,13 @@*/ #define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "parse-options.h" #include "string-list.h" #include "tempfile.h" #include "trailer.h" -#include "config.h" +#include "setup/config.h" static const char *const git_interpret_trailers_usage[] = { N_("git interpret-trailers [--in-place] [--trim-empty]\n"
builtin/last-modified.c +3 -3
@@ -4,10 +4,10 @@#include "pack/commit-graph.h" #include "odb/commit-slab.h" #include "odb/commit.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" #include "diff/diffcore.h" -#include "environment.h" +#include "setup/environment.h" #include "ewah/ewok.h" #include "hashmap.h" #include "hex.h"
@@ -16,7 +16,7 @@#include "parse-options.h" #include "prio-queue.h" #include "quote.h" -#include "repository.h" +#include "setup/repository.h" #include "revision/revision.h" /* Remember to update object flag allocation in object.h */
builtin/log.c +3 -3
@@ -9,8 +9,8 @@#include "builtin.h" #include "abspath.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "refs/refs.h"
@@ -37,7 +37,7 @@#include "parse-options.h" #include "revision/line-log.h" #include "branch.h" -#include "version.h" +#include "setup/version.h" #include "mailmap.h" #include "progress.h" #include "odb/commit-slab.h"
builtin/ls-files.c +3 -3
@@ -9,9 +9,9 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "convert.h" -#include "environment.h" +#include "setup/environment.h" #include "quote.h" #include "index/dir.h" #include "gettext.h"
@@ -23,7 +23,7 @@#include "path.h" #include "index/pathspec.h" #include "index/read-cache.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "submodule.h" #include "odb/odb.h"
builtin/ls-tree.c +2 -2
@@ -6,8 +6,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-name.h"
builtin/mailinfo.c +1 -1
@@ -5,7 +5,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "abspath.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "strbuf.h" #include "mailinfo.h"
builtin/merge-base.c +2 -2
@@ -1,8 +1,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "odb/commit.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-name.h"
builtin/merge-file.c +2 -2
@@ -8,9 +8,9 @@#include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" -#include "setup.h" +#include "setup/setup.h" #include "xdiff/xdiff.h" #include "diff/xdiff-interface.h" #include "parse-options.h"
builtin/merge-ours.c +2 -2
@@ -10,8 +10,8 @@#include "git-compat-util.h" #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "diff/diff.h" static const char builtin_merge_ours_usage[] =
builtin/merge-tree.c +2 -2
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "environment.h" +#include "setup/environment.h" #include "odb/tree-walk.h" #include "diff/xdiff-interface.h" #include "help.h"
@@ -17,7 +17,7 @@#include "merge-blobs.h" #include "quote.h" #include "odb/tree.h" -#include "config.h" +#include "setup/config.h" #include "strvec.h" #include "write-or-die.h"
builtin/merge.c +5 -5
@@ -13,17 +13,17 @@#include "abspath.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-name.h" #include "parse-options.h" #include "lockfile.h" -#include "repository.h" +#include "setup/repository.h" #include "run-command.h" -#include "hook.h" +#include "setup/hook.h" #include "diff/diff.h" #include "diff/diff-merges.h" #include "refs/refs.h"
@@ -46,7 +46,7 @@#include "sequencer.h" #include "string-list.h" #include "odb/tag.h" -#include "alias.h" +#include "setup/alias.h" #include "branch.h" #include "revision/commit-reach.h" #include "index/wt-status.h"
builtin/mktag.c +1 -1
@@ -8,7 +8,7 @@#include "odb/object-file.h" #include "odb/odb.h" #include "odb/fsck.h" -#include "config.h" +#include "setup/config.h" static char const *const builtin_mktag_usage[] = {"git mktag" ,
builtin/multi-pack-index.c +3 -3
@@ -1,8 +1,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "abspath.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "parse-options.h" #include "pack/midx.h"
@@ -12,7 +12,7 @@#include "odb/source.h" #include "odb/source-files.h" #include "odb/replace-object.h" -#include "repository.h" +#include "setup/repository.h" #define BUILTIN_MIDX_WRITE_USAGE \ N_("git multi-pack-index [<options>] write [--preferred-pack=<pack>]\n" \
builtin/mv.c +3 -3
@@ -10,8 +10,8 @@#include "builtin.h" #include "abspath.h" #include "advice.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "index/name-hash.h" #include "odb/object-file.h"
@@ -24,7 +24,7 @@#include "index/read-cache-ll.h" #include "index/symlinks.h" -#include "setup.h" +#include "setup/setup.h" #include "strvec.h" #include "submodule.h" #include "index/entry.h"
builtin/name-rev.c +2 -2
@@ -2,10 +2,10 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" -#include "config.h" +#include "setup/config.h" #include "odb/commit.h" #include "odb/tag.h" #include "refs/refs.h"
builtin/notes.c +2 -2
@@ -8,9 +8,9 @@*/ #define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "notes.h"
builtin/organize.c +1 -1
@@ -13,7 +13,7 @@#include "gettext.h" #include "organize/organize.h" #include "parse-options.h" -#include "repository.h" +#include "setup/repository.h" #include "strvec.h" static const char *const organize_usage[] = {
builtin/pack-objects.c +2 -2
@@ -2,10 +2,10 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" -#include "config.h" +#include "setup/config.h" #include "attr.h" #include "odb/object.h" #include "odb/commit.h"
builtin/patch-id.c +3 -3
@@ -1,14 +1,14 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h" #include "parse-options.h" -#include "setup.h" +#include "setup/setup.h" static void flush_current_id (size_t patchlen,struct object_id *id,struct object_id *result) {
builtin/prune.c +1 -1
@@ -4,7 +4,7 @@#include "odb/commit.h" #include "diff/diff.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "revision/revision.h"
builtin/pull.c +2 -2
@@ -10,8 +10,8 @@#include "builtin.h" #include "advice.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "merge.h"
builtin/push.c +2 -2
@@ -7,9 +7,9 @@#include "builtin.h" #include "advice.h" #include "branch.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "refs/refspec.h"
builtin/range-diff.c +1 -1
@@ -5,7 +5,7 @@#include "odb/object-name.h" #include "parse-options.h" #include "diff/range-diff.h" -#include "config.h" +#include "setup/config.h" #include "parse.h" #include "color.h"
builtin/read-tree.c +3 -3
@@ -5,8 +5,8 @@*/ #define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "lockfile.h"
@@ -18,7 +18,7 @@#include "index/unpack-trees.h" #include "parse-options.h" #include "index/resolve-undo.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "submodule.h"
builtin/rebase.c +3 -3
@@ -10,14 +10,14 @@#include "builtin.h" #include "abspath.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "run-command.h" #include "strvec.h" #include "index/dir.h" #include "refs/refs.h" -#include "config.h" +#include "setup/config.h" #include "index/unpack-trees.h" #include "lockfile.h" #include "odb/object-file.h"
@@ -35,7 +35,7 @@#include "rebase-interactive.h" #include "reset.h" #include "trace2.h" -#include "hook.h" +#include "setup/hook.h" #include "trailer.h" static char const *const builtin_rebase_usage[] = {
builtin/receive-pack.c +5 -5
@@ -5,16 +5,16 @@#include "abspath.h" #include "odb/commit.h" #include "revision/commit-reach.h" -#include "config.h" +#include "setup/config.h" #include "connect.h" #include "connected.h" -#include "environment.h" +#include "setup/environment.h" #include "exec-cmd.h" #include "odb/fsck.h" #include "gettext.h" #include "gpg-interface.h" #include "hex.h" -#include "hook.h" +#include "setup/hook.h" #include "lockfile.h" #include "odb/object.h" #include "odb/object-file.h"
@@ -31,7 +31,7 @@#include "remote.h" #include "run-command.h" #include "pack/server-info.h" -#include "setup.h" +#include "setup/setup.h" #include "revision/shallow.h" #include "sideband.h" #include "sigchain.h"
@@ -39,7 +39,7 @@#include "strvec.h" #include "trace.h" #include "trace2.h" -#include "version.h" +#include "setup/version.h" #include "refs/worktree.h" static const char *const receive_pack_usage[] = {
builtin/reflog.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" #include "hex.h" #include "odb/odb.h"
builtin/refs.c +1 -1
@@ -1,5 +1,5 @@#include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "odb/fsck.h" #include "refs/pack-refs.h" #include "parse-options.h"
builtin/remote.c +2 -2
@@ -2,10 +2,10 @@#include "builtin.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "date.h" #include "gettext.h" -#include "ident.h" +#include "setup/ident.h" #include "parse-options.h" #include "path.h" #include "transport.h"
builtin/repack.c +2 -2
@@ -1,8 +1,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "parse-options.h" #include "path.h" #include "run-command.h"
builtin/replace.c +2 -2
@@ -9,9 +9,9 @@*/ #define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "refs/refs.h"
builtin/replay.c +1 -1
@@ -5,7 +5,7 @@#include "git-compat-util.h" #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "hex.h" #include "odb/object-name.h" #include "parse-options.h"
builtin/repo.c +2 -2
@@ -2,7 +2,7 @@#include "builtin.h" #include "odb/commit.h" -#include "environment.h" +#include "setup/environment.h" #include "odb/hash.h" #include "hex.h" #include "odb/odb.h"
@@ -14,7 +14,7 @@#include "refs/ref-filter.h" #include "refs/refs.h" #include "revision/revision.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" #include "string-list.h" #include "revision/shallow.h"
builtin/rerere.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" #include "parse-options.h" #include "rerere.h"
builtin/reset.c +4 -4
@@ -12,8 +12,8 @@#include "builtin.h" #include "advice.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
@@ -28,10 +28,10 @@#include "odb/object-name.h" #include "parse-options.h" #include "path.h" -#include "repository.h" +#include "setup/repository.h" #include "index/unpack-trees.h" #include "index/cache-tree.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "submodule.h" #include "trace.h"
builtin/rev-list.c +2 -2
@@ -2,10 +2,10 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "odb/commit.h" #include "diff/diff.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "revision/revision.h"
builtin/rev-parse.c +5 -5
@@ -11,9 +11,9 @@#include "abspath.h" #include "revision/bisect.h" -#include "config.h" +#include "setup/config.h" #include "odb/commit.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
@@ -24,10 +24,10 @@#include "path.h" #include "diff/diff.h" #include "index/read-cache-ll.h" -#include "repo-settings.h" -#include "repository.h" +#include "setup/repo-settings.h" +#include "setup/repository.h" #include "revision/revision.h" -#include "setup.h" +#include "setup/setup.h" #include "index/split-index.h" #include "submodule.h" #include "revision/commit-reach.h"
builtin/revert.c +1 -1
@@ -4,7 +4,7 @@#include "builtin.h" #include "parse-options.h" #include "diff/diff.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "revision/revision.h" #include "rerere.h"
builtin/rm.c +3 -3
@@ -8,8 +8,8 @@#include "builtin.h" #include "advice.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "lockfile.h" #include "index/dir.h" #include "gettext.h"
@@ -20,7 +20,7 @@#include "index/read-cache.h" #include "string-list.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "submodule.h" #include "index/pathspec.h"
builtin/send-pack.c +2 -2
@@ -1,6 +1,6 @@#include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "hex.h" #include "pkt-line.h" #include "run-command.h"
builtin/shortlog.c +3 -3
@@ -1,16 +1,16 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" +#include "setup/config.h" #include "odb/commit.h" #include "diff/diff.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "string-list.h" #include "revision/revision.h" #include "utf8.h" #include "mailmap.h" -#include "setup.h" +#include "setup/setup.h" #include "shortlog.h" #include "parse-options.h" #include "trailer.h"
builtin/show-branch.c +2 -2
@@ -2,8 +2,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
builtin/show-ref.c +2 -2
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "refs/refs-internal.h"
builtin/sparse-checkout.c +3 -3
@@ -3,9 +3,9 @@#include "builtin.h" #include "abspath.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/object-file.h" #include "odb/object-name.h"
@@ -17,7 +17,7 @@#include "lockfile.h" #include "index/unpack-trees.h" #include "quote.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "refs/worktree.h"
builtin/stash.c +4 -4
@@ -2,8 +2,8 @@#include "builtin.h" #include "abspath.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
@@ -20,10 +20,10 @@#include "index/entry.h" #include "index/preload-index.h" #include "index/read-cache.h" -#include "repository.h" +#include "setup/repository.h" #include "rerere.h" #include "revision/revision.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "revision/log-tree.h" #include "diff/diffcore.h"
builtin/stripspace.c +3 -3
@@ -1,10 +1,10 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "parse-options.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" #include "write-or-die.h"
builtin/submodule--helper.c +3 -3
@@ -2,11 +2,11 @@#include "builtin.h" #include "abspath.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" -#include "config.h" +#include "setup/config.h" #include "parse-options.h" #include "quote.h" #include "path.h"
@@ -14,7 +14,7 @@#include "index/preload-index.h" #include "index/dir.h" #include "index/read-cache.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "submodule.h" #include "submodule-config.h"
builtin/symbolic-ref.c +2 -2
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "refs/refs.h" #include "parse-options.h"
builtin/tag.c +2 -2
@@ -11,9 +11,9 @@#include "builtin.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "refs/refs.h"
builtin/unpack-file.c +2 -2
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "hex.h" #include "odb/object-file.h" #include "odb/object-name.h"
builtin/unpack-objects.c +2 -2
@@ -2,8 +2,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "git-zlib.h" #include "hex.h"
builtin/update-index.c +3 -3
@@ -8,8 +8,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
@@ -26,7 +26,7 @@#include "index/pathspec.h" #include "index/dir.h" #include "index/read-cache.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "index/split-index.h" #include "index/symlinks.h"
builtin/update-ref.c +2 -2
@@ -2,8 +2,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
builtin/update-server-info.c +2 -2
@@ -1,6 +1,6 @@#include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "parse-options.h" #include "pack/server-info.h"
builtin/upload-archive.c +1 -1
@@ -5,7 +5,7 @@#include "builtin.h" #include "archive.h" #include "pkt-line.h" -#include "setup.h" +#include "setup/setup.h" #include "sideband.h" #include "run-command.h" #include "strvec.h"
builtin/upload-pack.c +2 -2
@@ -9,9 +9,9 @@#include "odb/replace-object.h" #include "upload-pack.h" #include "serve.h" -#include "setup.h" +#include "setup/setup.h" #include "odb/commit.h" -#include "environment.h" +#include "setup/environment.h" static const char *const upload_pack_usage[] = { N_("git-upload-pack [--[no-]strict] [--timeout=<n>] [--stateless-rpc]\n"
builtin/var.c +3 -3
@@ -9,10 +9,10 @@#include "builtin.h" #include "attr.h" -#include "config.h" +#include "setup/config.h" #include "editor.h" -#include "environment.h" -#include "ident.h" +#include "setup/environment.h" +#include "setup/ident.h" #include "pager.h" #include "refs/refs.h" #include "path.h"
builtin/verify-commit.c +2 -2
@@ -6,8 +6,8 @@* Based on git-verify-tag */ #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/object-name.h" #include "odb/commit.h"
builtin/verify-pack.c +2 -2
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "run-command.h" #include "parse-options.h"
builtin/verify-tag.c +2 -2
@@ -6,8 +6,8 @@* Based on git-verify-tag.sh */ #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/tag.h" #include "odb/object-name.h"
builtin/worktree.c +3 -3
@@ -5,10 +5,10 @@#include "abspath.h" #include "advice.h" #include "index/checkout.h" -#include "config.h" +#include "setup/config.h" #include "copy.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/object-file.h"
@@ -21,7 +21,7 @@#include "refs/refs.h" #include "remote.h" #include "run-command.h" -#include "hook.h" +#include "setup/hook.h" #include "sigchain.h" #include "submodule.h" #include "utf8.h"
builtin/write-tree.c +2 -2
@@ -5,8 +5,8 @@*/ #define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/tree.h"
bundle-uri.c +1 -1
@@ -10,7 +10,7 @@#include "run-command.h" #include "hashmap.h" #include "pkt-line.h" -#include "config.h" +#include "setup/config.h" #include "fetch-pack.h" #include "remote.h" #include "trace2.h"
bundle.c +2 -2
@@ -4,11 +4,11 @@#include "git-compat-util.h" #include "lockfile.h" #include "bundle.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/odb.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/object.h" #include "odb/commit.h" #include "diff/diff.h"
color.c +1 -1
@@ -1,7 +1,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "color.h" #include "editor.h" #include "gettext.h"
column.c +1 -1
@@ -1,7 +1,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "column.h" #include "string-list.h" #include "pager.h"
common-init.c +2 -2
@@ -7,9 +7,9 @@#include "attr.h" #include "odb/odb.h" #include "parse.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/replace-object.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" #include "trace2.h"
compat/fsmonitor/fsm-health-darwin.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "index/fsmonitor-ll.h" #include "fsm-health.h" #include "index/fsmonitor--daemon.h"
compat/fsmonitor/fsm-health-linux.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "index/fsmonitor-ll.h" #include "fsm-health.h" #include "index/fsmonitor--daemon.h"
compat/fsmonitor/fsm-health-win32.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "index/fsmonitor-ll.h" #include "fsm-health.h" #include "index/fsmonitor--daemon.h"
compat/fsmonitor/fsm-ipc-unix.c +2 -2
@@ -1,11 +1,11 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" #include "hex.h" #include "path.h" -#include "repository.h" +#include "setup/repository.h" #include "strbuf.h" #include "index/fsmonitor-ll.h" #include "index/fsmonitor-ipc.h"
compat/fsmonitor/fsm-ipc-win32.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "index/fsmonitor-ipc.h" #include "path.h"
compat/fsmonitor/fsm-listen-win32.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "index/fsmonitor-ll.h" #include "fsm-listen.h" #include "index/fsmonitor--daemon.h"
compat/fsmonitor/fsm-settings-unix.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "index/fsmonitor-ll.h" #include "index/fsmonitor-ipc.h" #include "index/fsmonitor-settings.h"
compat/fsmonitor/fsm-settings-win32.c +2 -2
@@ -1,6 +1,6 @@#include "git-compat-util.h" -#include "config.h" -#include "repository.h" +#include "setup/config.h" +#include "setup/repository.h" #include "index/fsmonitor-ll.h" #include "index/fsmonitor-settings.h" #include "index/fsmonitor-path-utils.h"
compat/mingw.c +3 -3
@@ -4,10 +4,10 @@#include "git-compat-util.h" #include "abspath.h" #include "odb/alloc.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" -#include "environment.h" -#include "repository.h" +#include "setup/environment.h" +#include "setup/repository.h" #include "gettext.h" #include "run-command.h" #include "strbuf.h"
compat/precompose_utf8.c +2 -2
@@ -7,8 +7,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "path.h" #include "strbuf.h"
compat/regex/regex.c +1 -1
@@ -20,7 +20,7 @@#pragma GCC diagnostic ignored "-Wsign-compare"#ifdef HAVE_CONFIG_H -#include "config.h" +#include "setup/config.h" #endif /* Make sure no one compiles this code with a C++ compiler. */
compat/win32/path-utils.c +2 -2
@@ -1,8 +1,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "../../git-compat-util.h" -#include "../../environment.h" -#include "../../repository.h" +#include "setup/environment.h" +#include "setup/repository.h" int win32_has_dos_drive_prefix (const char *path) {
compat/win32/trace2_win32_process_info.c +1 -1
@@ -2,7 +2,7 @@#include "../../git-compat-util.h" #include "../../json-writer.h" -#include "../../repository.h" +#include "setup/repository.h" #include "../../strvec.h" #include "../../trace2.h" #include "lazyload.h"
connect.c +4 -4
@@ -1,8 +1,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "pkt-line.h"
@@ -18,9 +18,9 @@#include "transport.h" #include "trace2.h" #include "strbuf.h" -#include "version.h" +#include "setup/version.h" #include "protocol.h" -#include "alias.h" +#include "setup/alias.h" #include "bundle-uri.h" #include "promisor-remote.h"
contrib/libgit-sys/public_symbol_export.c +2 -2
@@ -5,9 +5,9 @@*/ #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "contrib/libgit-sys/public_symbol_export.h" -#include "version.h" +#include "setup/version.h" #pragma GCC visibility push(default)
convert.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "convert.h" #include "copy.h" #include "gettext.h"
credential.c +3 -3
@@ -2,7 +2,7 @@#include "git-compat-util.h" #include "abspath.h" -#include "config.h" +#include "setup/config.h" #include "credential.h" #include "gettext.h" #include "string-list.h"
@@ -12,9 +12,9 @@#include "sigchain.h" #include "strbuf.h" #include "urlmatch.h" -#include "environment.h" +#include "setup/environment.h" #include "trace2.h" -#include "repository.h" +#include "setup/repository.h" void credential_init (struct credential *c) {
daemon.c +3 -3
@@ -2,14 +2,14 @@#include "git-compat-util.h" #include "abspath.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "path.h" #include "pkt-line.h" #include "protocol.h" #include "run-command.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" #include "string-list.h"
diagnose.c +1 -1
@@ -10,7 +10,7 @@#include "odb/odb.h" #include "pack/packfile.h" #include "parse-options.h" -#include "repository.h" +#include "setup/repository.h" #include "write-or-die.h" struct archive_dir {
diff/combine-diff.c +1 -1
@@ -7,7 +7,7 @@#include "convert.h" #include "diff/diff.h" #include "diff/diffcore.h" -#include "environment.h" +#include "setup/environment.h" #include "hex.h" #include "odb/object-name.h" #include "quote.h"
diff/diff-lib.c +1 -1
@@ -18,7 +18,7 @@#include "index/cache-tree.h" #include "index/unpack-trees.h" #include "refs/refs.h" -#include "repository.h" +#include "setup/repository.h" #include "submodule.h" #include "index/symlinks.h" #include "trace.h"
diff/diff.c +3 -3
@@ -8,9 +8,9 @@#include "git-compat-util.h" #include "abspath.h" #include "base85.h" -#include "config.h" +#include "setup/config.h" #include "convert.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "tempfile.h" #include "revision/revision.h"
@@ -43,7 +43,7 @@#include "odb/object-file.h" #include "odb/object-name.h" #include "index/read-cache-ll.h" -#include "setup.h" +#include "setup/setup.h" #include "strmap.h" #include "ws.h"
diff/range-diff.c +2 -2
@@ -2,7 +2,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "diff/range-diff.h" #include "odb/object-name.h"
@@ -16,7 +16,7 @@#include "odb/commit.h" #include "pager.h" #include "revision/pretty.h" -#include "repository.h" +#include "setup/repository.h" #include "diff/userdiff.h" #include "apply.h" #include "revision/revision.h"
diff/tree-diff.c +1 -1
@@ -10,7 +10,7 @@#include "odb/hash.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "repository.h" +#include "setup/repository.h" #include "index/dir.h" /*
diff/userdiff.c +2 -2
@@ -2,11 +2,11 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "diff/userdiff.h" #include "attr.h" #include "strbuf.h" -#include "environment.h" +#include "setup/environment.h" static struct userdiff_driver *drivers;static int ndrivers;
diff/xdiff-interface.c +2 -2
@@ -1,9 +1,9 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" -#include "config.h" +#include "setup/config.h" #include "hex.h" #include "odb/odb.h" #include "strbuf.h"
editor.c +2 -2
@@ -3,9 +3,9 @@#include "git-compat-util.h" #include "abspath.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "editor.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "pager.h" #include "path.h"
exec-cmd.c +1 -1
@@ -1,6 +1,6 @@#include "git-compat-util.h" #include "abspath.h" -#include "environment.h" +#include "setup/environment.h" #include "exec-cmd.h" #include "gettext.h" #include "path.h"
fetch-negotiator.c +1 -1
@@ -3,7 +3,7 @@#include "negotiator/default.h" #include "negotiator/skipping.h" #include "negotiator/noop.h" -#include "repository.h" +#include "setup/repository.h" void fetch_negotiator_init (struct repository *r,struct fetch_negotiator *negotiator)
fetch-pack.c +4 -4
@@ -2,10 +2,10 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "repository.h" -#include "config.h" +#include "setup/repository.h" +#include "setup/config.h" #include "date.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "lockfile.h"
@@ -20,7 +20,7 @@#include "run-command.h" #include "connect.h" #include "trace2.h" -#include "version.h" +#include "setup/version.h" #include "odb/oid-array.h" #include "odb/oidset.h" #include "pack/packfile.h"
fmt-merge-msg.c +2 -2
@@ -2,8 +2,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "refs/refs.h" #include "odb/object-name.h" #include "odb/odb.h"
gettext.c +1 -1
@@ -6,7 +6,7 @@#include "git-compat-util.h" #include "abspath.h" -#include "environment.h" +#include "setup/environment.h" #include "exec-cmd.h" #include "gettext.h" #include "utf8.h"
git.c +4 -4
@@ -1,8 +1,8 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "exec-cmd.h" #include "gettext.h" #include "help.h"
@@ -10,9 +10,9 @@#include "pager.h" #include "index/read-cache-ll.h" #include "run-command.h" -#include "alias.h" +#include "setup/alias.h" #include "odb/replace-object.h" -#include "setup.h" +#include "setup/setup.h" #include "attr.h" #include "revision/shallow.h" #include "trace.h"
gpg-interface.c +3 -3
@@ -2,18 +2,18 @@#include "git-compat-util.h" #include "odb/commit.h" -#include "config.h" +#include "setup/config.h" #include "date.h" #include "gettext.h" #include "run-command.h" #include "strbuf.h" #include "index/dir.h" -#include "ident.h" +#include "setup/ident.h" #include "gpg-interface.h" #include "path.h" #include "sigchain.h" #include "tempfile.h" -#include "alias.h" +#include "setup/alias.h" static int git_gpg_config (const char *,const char *,const struct config_context *,void *);
grep.c +1 -1
@@ -1,7 +1,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" #include "grep.h" #include "hex.h"
help.c +4 -4
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "git-zlib.h" -#include "config.h" +#include "setup/config.h" #include "builtin.h" #include "exec-cmd.h" #include "run-command.h"
@@ -14,13 +14,13 @@#include "command-list.h" #include "string-list.h" #include "column.h" -#include "version.h" +#include "setup/version.h" #include "refs/refs.h" #include "parse-options.h" #include "prompt.h" #include "index/fsmonitor-ipc.h" -#include "repository.h" -#include "alias.h" +#include "setup/repository.h" +#include "setup/alias.h" #include "utf8.h" #ifndef NO_CURL
http-backend.c +4 -4
@@ -2,12 +2,12 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "git-zlib.h" #include "hex.h" #include "path.h" -#include "repository.h" +#include "setup/repository.h" #include "refs/refs.h" #include "pkt-line.h" #include "odb/object.h"
@@ -16,7 +16,7 @@#include "run-command.h" #include "string-list.h" #include "url.h" -#include "setup.h" +#include "setup/setup.h" #include "strvec.h" #include "pack/packfile.h" #include "odb/odb.h"
http-fetch.c +3 -3
@@ -1,13 +1,13 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "http.h" #include "walker.h" -#include "setup.h" +#include "setup/setup.h" #include "strvec.h" #include "url.h" #include "urlmatch.h"
http-push.c +3 -3
@@ -1,9 +1,9 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "environment.h" +#include "setup/environment.h" #include "hex.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/commit.h" #include "odb/tag.h" #include "odb/blob.h"
@@ -12,7 +12,7 @@#include "revision/revision.h" #include "remote.h" #include "revision/list-objects.h" -#include "setup.h" +#include "setup/setup.h" #include "sigchain.h" #include "strvec.h" #include "odb/tree.h"
http-walker.c +1 -1
@@ -2,7 +2,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "repository.h" +#include "setup/repository.h" #include "hex.h" #include "walker.h" #include "http.h"
http.c +3 -3
@@ -3,16 +3,16 @@#include "git-compat-util.h" #include "git-curl-compat.h" -#include "environment.h" +#include "setup/environment.h" #include "hex.h" #include "http.h" -#include "config.h" +#include "setup/config.h" #include "pack/pack.h" #include "run-command.h" #include "url.h" #include "urlmatch.h" #include "credential.h" -#include "version.h" +#include "setup/version.h" #include "pkt-line.h" #include "gettext.h" #include "trace.h"
imap-send.c +3 -3
@@ -26,13 +26,13 @@#include "git-compat-util.h" #include "advice.h" -#include "config.h" +#include "setup/config.h" #include "credential.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "run-command.h" #include "parse-options.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" #ifdef USE_CURL_FOR_IMAP_SEND #include "http.h"
index/cache-tree.c +1 -1
@@ -13,7 +13,7 @@#include "odb/transaction.h" #include "index/read-cache-ll.h" #include "odb/replace-object.h" -#include "repository.h" +#include "setup/repository.h" #include "promisor-remote.h" #include "trace.h" #include "trace2.h"
index/checkout.c +2 -2
@@ -4,9 +4,9 @@#include "odb/object-name.h" #include "remote.h" #include "refs/refspec.h" -#include "repository.h" +#include "setup/repository.h" #include "index/checkout.h" -#include "config.h" +#include "setup/config.h" #include "strbuf.h" struct tracking_name_data {
index/dir.c +4 -4
@@ -11,16 +11,16 @@#include "git-compat-util.h" #include "abspath.h" -#include "config.h" +#include "setup/config.h" #include "convert.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "index/name-hash.h" #include "odb/object-file.h" #include "path.h" #include "refs/refs.h" -#include "repository.h" +#include "setup/repository.h" #include "wildmatch.h" #include "index/pathspec.h" #include "utf8.h"
@@ -28,7 +28,7 @@#include "ewah/ewok.h" #include "index/fsmonitor-ll.h" #include "index/read-cache-ll.h" -#include "setup.h" +#include "setup/setup.h" #include "index/sparse-index.h" #include "strbuf.h" #include "submodule-config.h"
index/entry.c +1 -1
@@ -4,7 +4,7 @@#include "odb/odb.h" #include "odb/streaming.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "index/name-hash.h"
index/fsmonitor-ipc.c +1 -1
@@ -4,7 +4,7 @@#include "gettext.h" #include "simple-ipc.h" #include "index/fsmonitor-ipc.h" -#include "repository.h" +#include "setup/repository.h" #include "run-command.h" #include "strbuf.h" #include "trace2.h"
index/fsmonitor-settings.c +2 -2
@@ -1,7 +1,7 @@#include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "gettext.h" -#include "repository.h" +#include "setup/repository.h" #include "index/fsmonitor-ipc.h" #include "index/fsmonitor-settings.h" #include "index/fsmonitor-path-utils.h"
index/fsmonitor.c +3 -3
@@ -2,14 +2,14 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "ewah/ewok.h" #include "index/fsmonitor.h" #include "index/fsmonitor-ipc.h" #include "index/name-hash.h" -#include "repository.h" +#include "setup/repository.h" #include "run-command.h" #include "strbuf.h" #include "trace2.h"
index/name-hash.c +1 -1
@@ -10,7 +10,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "index/name-hash.h" #include "odb/object.h"
index/parallel-checkout.c +1 -1
@@ -2,7 +2,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "index/entry.h" #include "gettext.h" #include "odb/hash.h"
index/pathspec.c +3 -3
@@ -4,13 +4,13 @@#include "abspath.h" #include "parse.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "index/pathspec.h" #include "attr.h" #include "index/read-cache.h" -#include "repository.h" -#include "setup.h" +#include "setup/repository.h" +#include "setup/setup.h" #include "strvec.h" #include "index/symlinks.h" #include "quote.h"
index/preload-index.c +3 -3
@@ -7,7 +7,7 @@#include "git-compat-util.h" #include "index/pathspec.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "index/fsmonitor.h" #include "gettext.h" #include "parse.h"
@@ -15,10 +15,10 @@#include "progress.h" #include "index/read-cache.h" #include "thread-utils.h" -#include "repository.h" +#include "setup/repository.h" #include "index/symlinks.h" #include "trace2.h" -#include "config.h" +#include "setup/config.h" /* * Mostly randomly chosen maximum thread counts: we
index/read-cache.c +4 -4
@@ -8,7 +8,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "date.h" #include "diff/diff.h" #include "diff/diffcore.h"
@@ -24,7 +24,7 @@#include "odb/oid-array.h" #include "odb/tree.h" #include "odb/commit.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "mem-pool.h" #include "index/name-hash.h"
@@ -32,7 +32,7 @@#include "path.h" #include "index/preload-index.h" #include "index/read-cache.h" -#include "repository.h" +#include "setup/repository.h" #include "index/resolve-undo.h" #include "revision/revision.h" #include "strbuf.h"
@@ -47,7 +47,7 @@#include "index/sparse-index.h" #include "csum-file.h" #include "promisor-remote.h" -#include "hook.h" +#include "setup/hook.h" #include "submodule.h" #include "submodule-config.h" #include "advice.h"
index/read-cache.h +1 -1
@@ -4,7 +4,7 @@#include "index/read-cache-ll.h" #include "odb/object.h" #include "index/pathspec.h" -#include "environment.h" +#include "setup/environment.h" /* * Determine the appropriate index mode for a file based on its stat()
index/sparse-index.c +3 -3
@@ -2,18 +2,18 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "environment.h" +#include "setup/environment.h" #include "ewah/ewok.h" #include "gettext.h" #include "index/name-hash.h" #include "index/read-cache-ll.h" -#include "repository.h" +#include "setup/repository.h" #include "index/sparse-index.h" #include "odb/tree.h" #include "index/pathspec.h" #include "trace2.h" #include "index/cache-tree.h" -#include "config.h" +#include "setup/config.h" #include "index/dir.h" #include "index/fsmonitor-ll.h" #include "advice.h"
index/split-index.c +1 -1
@@ -5,7 +5,7 @@#include "odb/hash.h" #include "mem-pool.h" #include "index/read-cache-ll.h" -#include "repository.h" +#include "setup/repository.h" #include "index/split-index.h" #include "strbuf.h" #include "ewah/ewok.h"
index/statinfo.c +2 -2
@@ -1,9 +1,9 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "environment.h" +#include "setup/environment.h" #include "index/statinfo.h" -#include "repository.h" +#include "setup/repository.h" /* * Munge st_size into an unsigned int.
index/symlinks.c +1 -1
@@ -2,7 +2,7 @@#include "git-compat-util.h" #include "gettext.h" -#include "setup.h" +#include "setup/setup.h" #include "index/symlinks.h" static int threaded_check_leading_path(struct cache_def *cache, const char *name,
index/unpack-trees.c +3 -3
@@ -4,10 +4,10 @@#include "git-compat-util.h" #include "advice.h" #include "strvec.h" -#include "repository.h" +#include "setup/repository.h" #include "parse.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "index/name-hash.h"
@@ -30,7 +30,7 @@#include "promisor-remote.h" #include "index/entry.h" #include "index/parallel-checkout.h" -#include "setup.h" +#include "setup/setup.h" /* * Error messages expected by scripts out of plumbing commands such as
index/wt-status.c +3 -3
@@ -8,7 +8,7 @@#include "index/dir.h" #include "odb/commit.h" #include "diff/diff.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "odb/hash.h" #include "hex.h"
@@ -17,7 +17,7 @@#include "revision/revision.h" #include "diff/diffcore.h" #include "quote.h" -#include "repository.h" +#include "setup/repository.h" #include "run-command.h" #include "strvec.h" #include "remote.h"
@@ -25,7 +25,7 @@#include "submodule.h" #include "column.h" #include "index/read-cache.h" -#include "setup.h" +#include "setup/setup.h" #include "strbuf.h" #include "trace.h" #include "trace2.h"
lockfile.c +1 -1
@@ -9,7 +9,7 @@#include "gettext.h" #include "lockfile.h" #include "parse.h" -#include "repository.h" +#include "setup/repository.h" #include "strbuf.h" #include "wrapper.h"
mailinfo.c +2 -2
@@ -1,8 +1,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex-ll.h" #include "utf8.h"
mailmap.c +3 -3
@@ -1,11 +1,11 @@#include "git-compat-util.h" -#include "environment.h" +#include "setup/environment.h" #include "string-list.h" #include "mailmap.h" #include "odb/object-name.h" #include "odb/odb.h" -#include "setup.h" -#include "config.h" +#include "setup/setup.h" +#include "setup/config.h" struct mailmap_info {char *name;
merge-ll.c +1 -1
@@ -8,7 +8,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "convert.h" #include "attr.h" #include "diff/xdiff-interface.h"
merge-ort-wrappers.c +1 -1
@@ -6,7 +6,7 @@#include "merge-ort.h" #include "merge-ort-wrappers.h" #include "index/read-cache-ll.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/tag.h" #include "odb/tree.h"
merge-ort.c +2 -2
@@ -26,11 +26,11 @@#include "index/cache-tree.h" #include "odb/commit.h" #include "revision/commit-reach.h" -#include "config.h" +#include "setup/config.h" #include "diff/diff.h" #include "diff/diffcore.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "index/entry.h"
merge.c +1 -1
@@ -7,7 +7,7 @@#include "lockfile.h" #include "merge.h" #include "odb/commit.h" -#include "repository.h" +#include "setup/repository.h" #include "run-command.h" #include "index/resolve-undo.h" #include "odb/tree.h"
meson.build +9 -9
@@ -311,7 +311,7 @@ libgit_sources = [ 'add-interactive.c', 'add-patch.c', 'advice.c', - 'alias.c', + 'setup/alias.c', 'odb/alloc.c', 'apply.c', 'archive-tar.c',
@@ -340,7 +340,7 @@ libgit_sources = [ 'common-exit.c', 'common-init.c', 'compiler-tricks/not-constant.c', - 'config.c', + 'setup/config.c', 'connect.c', 'connected.c', 'convert.c',
@@ -367,7 +367,7 @@ libgit_sources = [ 'index/dir.c', 'editor.c', 'index/entry.c', - 'environment.c', + 'setup/environment.c', 'ewah/bitmap.c', 'ewah/ewah_bitmap.c', 'ewah/ewah_io.c',
@@ -392,8 +392,8 @@ libgit_sources = [ 'help.c', 'hex.c', 'hex-ll.c', - 'hook.c', - 'ident.c', + 'setup/hook.c', + 'setup/ident.c', 'json-writer.c', 'kwset.c', 'levenshtein.c',
@@ -517,8 +517,8 @@ libgit_sources = [ 'pack/repack-promisor.c', 'odb/replace-object.c', 'replay.c', - 'repo-settings.c', - 'repository.c', + 'setup/repo-settings.c', + 'setup/repository.c', 'rerere.c', 'reset.c', 'index/resolve-undo.c',
@@ -528,7 +528,7 @@ libgit_sources = [ 'sequencer.c', 'serve.c', 'pack/server-info.c', - 'setup.c', + 'setup/setup.c', 'revision/shallow.c', 'sideband.c', 'sigchain.c',
@@ -575,7 +575,7 @@ libgit_sources = [ 'usage.c', 'diff/userdiff.c', 'utf8.c', - 'version.c', + 'setup/version.c', 'versioncmp.c', 'walker.c', 'wildmatch.c',
negotiator/default.c +1 -1
@@ -6,7 +6,7 @@#include "../fetch-negotiator.h" #include "../prio-queue.h" #include "refs/refs.h" -#include "../repository.h" +#include "setup/repository.h" #include "odb/tag.h" /* Remember to update object flag allocation in object.h */
negotiator/skipping.c +1 -1
@@ -7,7 +7,7 @@#include "../hex.h" #include "../prio-queue.h" #include "refs/refs.h" -#include "../repository.h" +#include "setup/repository.h" #include "odb/tag.h" /* Remember to update object flag allocation in object.h */
notes-cache.c +1 -1
@@ -5,7 +5,7 @@#include "odb/object-file.h" #include "odb/odb.h" #include "revision/pretty.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/commit.h" #include "refs/refs.h" #include "strbuf.h"
notes-merge.c +1 -1
@@ -10,7 +10,7 @@#include "odb/object-name.h" #include "odb/odb.h" #include "path.h" -#include "repository.h" +#include "setup/repository.h" #include "diff/diff.h" #include "diff/diffcore.h" #include "hex.h"
notes-utils.c +2 -2
@@ -1,9 +1,9 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "config.h" +#include "setup/config.h" #include "odb/commit.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "refs/refs.h" #include "notes-utils.h"
notes.c +2 -2
@@ -2,8 +2,8 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "hex.h" #include "notes.h" #include "odb/object-file.h"
odb/alloc.c +1 -1
@@ -13,7 +13,7 @@#include "odb/blob.h" #include "odb/tree.h" #include "odb/commit.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/tag.h" #include "odb/alloc.h"
odb/commit.c +4 -4
@@ -4,10 +4,10 @@#include "odb/tag.h" #include "odb/commit.h" #include "pack/commit-graph.h" -#include "environment.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/object-name.h" #include "odb/odb.h" #include "utf8.h"
@@ -24,10 +24,10 @@#include "advice.h" #include "refs/refs.h" #include "revision/commit-reach.h" -#include "setup.h" +#include "setup/setup.h" #include "revision/shallow.h" #include "odb/tree.h" -#include "hook.h" +#include "setup/hook.h" #include "parse.h" #include "odb/object-file.h" #include "odb/object-file-convert.h"
odb/fsck.c +3 -3
@@ -1,11 +1,11 @@#include "git-compat-util.h" #include "date.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "hex.h" #include "odb/odb.h" #include "path.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/object.h" #include "attr.h" #include "odb/blob.h"
@@ -20,7 +20,7 @@#include "odb/oidset.h" #include "pack/packfile.h" #include "submodule-config.h" -#include "config.h" +#include "setup/config.h" #include "help.h" static ssize_t max_tree_entry_len =4096 ;
odb/hash.h +1 -1
@@ -269,7 +269,7 @@ enum get_oid_result { };#ifdef USE_THE_REPOSITORY_VARIABLE -# include "repository.h" +# include "setup/repository.h" # define the_hash_algo the_repository->hash_algo#endif
odb/loose.c +1 -1
@@ -5,7 +5,7 @@#include "odb/odb.h" #include "odb/source-files.h" #include "hex.h" -#include "repository.h" +#include "setup/repository.h" #include "wrapper.h" #include "gettext.h" #include "odb/loose.h"
odb/match-trees.c +1 -1
@@ -8,7 +8,7 @@#include "odb/tree-walk.h" #include "odb/object-file.h" #include "odb/odb.h" -#include "repository.h" +#include "setup/repository.h" static int score_missing (unsigned mode) {
odb/object-file-convert.c +1 -1
@@ -4,7 +4,7 @@#include "gettext.h" #include "strbuf.h" #include "hex.h" -#include "repository.h" +#include "setup/repository.h" #include "odb/hash.h" #include "odb/object.h" #include "odb/loose.h"
odb/object-file.c +2 -2
@@ -12,7 +12,7 @@#include "git-compat-util.h" #include "convert.h" #include "index/dir.h" -#include "environment.h" +#include "setup/environment.h" #include "odb/fsck.h" #include "gettext.h" #include "hex.h"
@@ -26,7 +26,7 @@#include "pack/packfile.h" #include "path.h" #include "index/read-cache-ll.h" -#include "setup.h" +#include "setup/setup.h" #include "strvec.h" #include "tempfile.h" #include "odb/tmp-objdir.h"
odb/object-name.c +5 -5
@@ -4,8 +4,8 @@#include "git-compat-util.h" #include "odb/object-name.h" #include "advice.h" -#include "config.h" -#include "environment.h" +#include "setup/config.h" +#include "setup/environment.h" #include "gettext.h" #include "hex.h" #include "odb/tag.h"
@@ -19,9 +19,9 @@#include "odb/oid-array.h" #include "revision/pretty.h" #include "index/read-cache-ll.h" -#include "repo-settings.h" -#include "repository.h" -#include "setup.h" +#include "setup/repo-settings.h" +#include "setup/repository.h" +#include "setup/setup.h" #include "pack/midx.h"
Lines of this file are not shown. View the raw message.
setup/alias.h renamed from alias.h +0 -0
setup/environment.c renamed from environment.c +5 -5
Lines of this file are not shown. View the raw message.
setup/environment.h renamed from environment.h +1 -1
Lines of this file are not shown. View the raw message.
setup/ident.h renamed from ident.h +0 -0
setup/repo-settings.c renamed from repo-settings.c +4 -4
Lines of this file are not shown. View the raw message.
setup/repo-settings.h renamed from repo-settings.h +0 -0
setup/repository.c renamed from repository.c +4 -4
Lines of this file are not shown. View the raw message.
setup/repository.h renamed from repository.h +2 -2
Lines of this file are not shown. View the raw message.
setup/setup.h renamed from setup.h +0 -0
setup/version.h renamed from version.h +0 -0
t/helper/test-submodule-nested-repo-config.c +2 -2
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.54.0
Part of the diff is not shown here. View the raw message.