git organize: record file placement and apply it
Subsystems (3)
cover git organize: record file placement and apply it
This series adds git organize, a command that records where a project's files belong and moves the files that are not there yet. It is inspired by the series to move the libgit.a sources under lib/ [1], and the sub-thread there on grouping files by signals already present in the tree [2]. That sub-thread asked which such signals identify a group of files that could move into a subdirectory. This RFC attempts to provide one answer, a tool that records such groups of files and applies the appropriate moves.
git organize has two jobs. It records a project's file-placement guideline in a tracked file, so the guideline travels with the repository. And it moves a file to its recorded directory, repoints the references to it, and stages the result; because a move can repoint the moved file's own references, the change is a rename plus mechanical reference repoints rather than an exact content-identical rename. The tool holds no layout of its own: a project states the placement, and git organize records it and performs the moves.
The guideline is .gitorganize. Its [scope] section lists the governed files as pathspecs. Its [layout] section holds ordered "label:value = directory" rules, where the first rule a file matches names its directory. Its [labels] section records one line per recorded source, holding its component and role; apply repoints a moved file's line to its new path, and a file already inside a layout directory before it was recorded has no line. Two configured commands supply the project-specific parts: the labeler records a file's labels, and the organizer returns the reference edits for a move and declines a move whose references it cannot repoint. A line already in [labels] is kept as recorded, so git organize apply --labels-only fills a file that has no line and leaves the rest; a placement set by hand or in an earlier run stands.
For Git's own tree, the reference labeler answers [2] from signals already in the history. It reads the "area:" prefix a file's commits carry most often, mined with git log --follow so a rename keeps the file's past, and a committed map consolidates those prefixes into components. A file whose prefix is too broad, unmapped, or absent falls back to its filename, and a file that its prefix does not place but that changes chiefly alongside one component is drawn into it. Each recorded line also carries the prefix, the file's #include coupling, and its co-change profile, so a reader sees the signals a placement rests on. The advisory prefix= text is mildly git-version sensitive, because git log --follow rename heuristics differ across git versions; the placed component does not vary, because the map keys on both a file's old-name token and its current-name token, which resolve to the same component.
git organize status reports the governed files in groups: in place, to move, backlog (a file recorded with no directory), and a recorded path that no longer exists. With --exit-code it fails when a file is out of place. Before any carve it reports
$ git organize status
organize: 495 in scope (113 in place, 303 to move, 79 backlog)This series carves the subsystems whose files reference each other: odb, refs, pack, diff, revision, index, setup, and transport. Measured intra-component #include coupling puts odb as the most tightly coupled, so it is carved first; the remaining subsystems are all internally cohesive, without a strict coupling rank among them. Each carve is one commit that moves the subsystem's sources and headers into its directory and repoints every reference: the #include lines, the Makefile and meson.build entries, the contrib CMake build, and the #include examples in the tutorials. Because apply --label selects a single subsystem, the moves arrive one commit at a time, each self-contained and reviewable on its own, rather than as one sweeping rename. After these eight carves status reports
$ git organize status
organize: 495 in scope (380 in place, 36 to move, 79 backlog)A carve is a rename plus mechanical reference repoints, including the moved file's own #include lines, so git blame and git log --follow still track it; it changes where a file lives, not what it depends on. Where each file belongs is the project's judgment, recorded in the layout and offered here to be argued and replaced: bisect.c sits under revision/ because it uses the revision machinery, but whether it should instead stand on its own, as rev-list and log do, is exactly the kind of call the labeler makes and the series invites reviewers to correct. A relabel and a re-run follow any such decision.
Two groups remain: 36 files the layout places but leaves uncarved here (archive, convert, merge, notes, and submodule), and 79 in backlog with no directory yet. The same labeler and organizer produce those patches. Each carve also updates .gitorganize, the tool's own record, so a carve taken upstream drops that line and stands on its own as ordinary renames and repoints; the tool need not be merged for a carve to be useful.
The target directories are not built into the tool: changing only the [layout] entries (component:odb = lib/odb, and so on) yields a layout nested under lib/, which builds. That is how this pairs with the series moving the libgit.a sources under lib/ [1]: the directory can be lib/<component>, so the same tool groups those sources further under lib/ rather than proposing an alternate top-level layout.
[1] https://lore.kernel.org/git/[email protected]/T/#m39669398367d8b79af9a40080996d475193a6d2b
[2] https://lore.kernel.org/git/[email protected]/T/#mfd455931a236cca8d669fdfcc0ef1d7127237cd6
Michael Montalbo (14):
organize: add the git organize builtin
organize: add the labeler, organizer, and apply --labels-only
organize: add status --exit-code
organize: add the --label selector
organize: declare Git's scope and layout
organize: record a label for every source in scope
odb: gather the odb sources under odb/
refs: gather the refs sources under refs/
pack: gather the pack sources under pack/
diff: gather the diff sources under diff/
revision: gather the revision sources under revision/
index: gather the index sources under index/
setup: gather the setup sources under setup/
transport: gather the transport sources under transport/
.gitignore | 1 + .gitorganize | 494 ++++++++++++ Documentation/Makefile | 4 +- Documentation/MyFirstContribution.adoc | 10 +- Documentation/MyFirstObjectWalk.adoc | 10 +- Documentation/git-organize.adoc | 199 +++++ Documentation/meson.build | 1 + Makefile | 309 ++++---- add-interactive.c | 18 +- add-patch.c | 16 +- advice.c | 4 +- apply.c | 30 +- apply.h | 2 +- archive-tar.c | 4 +- archive-zip.c | 8 +- archive.c | 22 +- archive.h | 2 +- attr.c | 20 +- branch.c | 18 +- builtin.h | 3 +- builtin/add.c | 20 +- builtin/am.c | 28 +- builtin/apply.c | 2 +- builtin/archive.c | 4 +- builtin/backfill.c | 28 +- builtin/bisect.c | 12 +- builtin/blame.c | 28 +- builtin/branch.c | 18 +- builtin/bugreport.c | 6 +- builtin/bundle.c | 6 +- builtin/cat-file.c | 32 +- builtin/check-attr.c | 8 +- builtin/check-ignore.c | 8 +- builtin/check-mailmap.c | 6 +- builtin/check-ref-format.c | 4 +- builtin/checkout--worker.c | 12 +- builtin/checkout-index.c | 16 +- builtin/checkout.c | 56 +- builtin/clean.c | 12 +- builtin/clone.c | 42 +- builtin/column.c | 2 +- builtin/commit-graph.c | 14 +- builtin/commit-tree.c | 10 +- builtin/commit.c | 34 +- builtin/config.c | 10 +- builtin/count-objects.c | 10 +- builtin/credential-cache--daemon.c | 2 +- builtin/credential-store.c | 2 +- builtin/credential.c | 4 +- builtin/describe.c | 28 +- builtin/diff-files.c | 12 +- builtin/diff-index.c | 14 +- builtin/diff-pairs.c | 12 +- builtin/diff-tree.c | 16 +- builtin/diff.c | 26 +- builtin/difftool.c | 20 +- builtin/fast-export.c | 32 +- builtin/fast-import.c | 32 +- builtin/fetch-pack.c | 14 +- builtin/fetch.c | 38 +- builtin/fmt-merge-msg.c | 2 +- builtin/for-each-ref.c | 10 +- builtin/for-each-repo.c | 4 +- builtin/fsck.c | 40 +- builtin/fsmonitor--daemon.c | 14 +- builtin/gc.c | 30 +- builtin/get-tar-commit-id.c | 2 +- builtin/grep.c | 26 +- builtin/hash-object.c | 12 +- builtin/help.c | 8 +- builtin/history.c | 26 +- builtin/hook.c | 6 +- builtin/index-pack.c | 38 +- builtin/init-db.c | 6 +- builtin/interpret-trailers.c | 4 +- builtin/last-modified.c | 24 +- builtin/log.c | 52 +- builtin/ls-files.c | 20 +- builtin/ls-remote.c | 8 +- builtin/ls-tree.c | 12 +- builtin/mailinfo.c | 2 +- builtin/merge-base.c | 10 +- builtin/merge-file.c | 14 +- builtin/merge-index.c | 4 +- builtin/merge-ours.c | 6 +- builtin/merge-recursive.c | 4 +- builtin/merge-tree.c | 20 +- builtin/merge.c | 44 +- builtin/mktag.c | 10 +- builtin/mktree.c | 6 +- builtin/multi-pack-index.c | 12 +- builtin/mv.c | 20 +- builtin/name-rev.c | 22 +- builtin/notes.c | 16 +- builtin/organize.c | 153 ++++ builtin/pack-objects.c | 66 +- builtin/pack-redundant.c | 4 +- builtin/pack-refs.c | 2 +- builtin/patch-id.c | 10 +- builtin/prune-packed.c | 2 +- builtin/prune.c | 24 +- builtin/pull.c | 22 +- builtin/push.c | 16 +- builtin/range-diff.c | 6 +- builtin/read-tree.c | 22 +- builtin/rebase.c | 26 +- builtin/receive-pack.c | 52 +- builtin/reflog.c | 14 +- builtin/refs.c | 10 +- builtin/remote-ext.c | 4 +- builtin/remote-fd.c | 2 +- builtin/remote.c | 16 +- builtin/repack.c | 18 +- builtin/replace.c | 16 +- builtin/replay.c | 8 +- builtin/repo.c | 22 +- builtin/rerere.c | 6 +- builtin/reset.c | 32 +- builtin/rev-list.c | 40 +- builtin/rev-parse.c | 34 +- builtin/revert.c | 6 +- builtin/rm.c | 20 +- builtin/send-pack.c | 18 +- builtin/shortlog.c | 12 +- builtin/show-branch.c | 16 +- builtin/show-index.c | 4 +- builtin/show-ref.c | 10 +- builtin/sparse-checkout.c | 20 +- builtin/stash.c | 42 +- builtin/stripspace.c | 6 +- builtin/submodule--helper.c | 36 +- builtin/symbolic-ref.c | 6 +- builtin/tag.c | 24 +- builtin/unpack-file.c | 10 +- builtin/unpack-objects.c | 24 +- builtin/update-index.c | 34 +- builtin/update-ref.c | 10 +- builtin/update-server-info.c | 6 +- builtin/upload-archive.c | 6 +- builtin/upload-pack.c | 16 +- builtin/var.c | 8 +- builtin/verify-commit.c | 8 +- builtin/verify-pack.c | 4 +- builtin/verify-tag.c | 10 +- builtin/worktree.c | 22 +- builtin/write-tree.c | 8 +- chdir-notify.c | 2 +- color.c | 2 +- column.c | 2 +- command-list.txt | 1 + common-init.c | 8 +- compat/fsmonitor/fsm-health-darwin.c | 6 +- compat/fsmonitor/fsm-health-linux.c | 6 +- compat/fsmonitor/fsm-health-win32.c | 6 +- compat/fsmonitor/fsm-ipc-unix.c | 10 +- compat/fsmonitor/fsm-ipc-win32.c | 4 +- compat/fsmonitor/fsm-listen-darwin.c | 6 +- compat/fsmonitor/fsm-listen-linux.c | 8 +- compat/fsmonitor/fsm-listen-win32.c | 6 +- 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 | 10 +- compat/fsmonitor/fsm-settings-win32.c | 10 +- compat/mingw.c | 12 +- compat/precompose_utf8.c | 4 +- compat/regex/regex.c | 2 +- compat/sha1-chunked.c | 2 +- compat/simple-ipc/ipc-win32.c | 2 +- compat/win32/path-utils.c | 4 +- compat/win32/trace2_win32_process_info.c | 2 +- contrib/buildsystems/CMakeLists.txt | 6 +- contrib/libgit-sys/public_symbol_export.c | 4 +- contrib/organize/git-layout.map | 41 + contrib/organize/labeler | 333 ++++++++ contrib/organize/organizer | 334 ++++++++ convert.c | 8 +- convert.h | 2 +- credential.c | 6 +- csum-file.c | 2 +- csum-file.h | 2 +- daemon.c | 10 +- diagnose.c | 8 +- combine-diff.c => diff/combine-diff.c | 26 +- diff-lib.c => diff/diff-lib.c | 30 +- diff-merges.c => diff/diff-merges.c | 4 +- diff-merges.h => diff/diff-merges.h | 0 diff-no-index.c => diff/diff-no-index.c | 12 +- diff.c => diff/diff.c | 38 +- diff.h => diff/diff.h | 4 +- diffcore-break.c => diff/diffcore-break.c | 8 +- diffcore-delta.c => diff/diffcore-delta.c | 2 +- diffcore-order.c => diff/diffcore-order.c | 4 +- diffcore-pickaxe.c => diff/diffcore-pickaxe.c | 10 +- diffcore-rename.c => diff/diffcore-rename.c | 10 +- diffcore-rotate.c => diff/diffcore-rotate.c | 4 +- diffcore.h => diff/diffcore.h | 2 +- patch-ids.c => diff/patch-ids.c | 8 +- patch-ids.h => diff/patch-ids.h | 2 +- range-diff.c => diff/range-diff.c | 20 +- range-diff.h => diff/range-diff.h | 2 +- tree-diff.c => diff/tree-diff.c | 14 +- userdiff.c => diff/userdiff.c | 6 +- userdiff.h => diff/userdiff.h | 0 xdiff-interface.c => diff/xdiff-interface.c | 8 +- xdiff-interface.h => diff/xdiff-interface.h | 2 +- editor.c | 4 +- exec-cmd.c | 2 +- fmt-merge-msg.c | 20 +- gettext.c | 2 +- git.c | 17 +- gpg-interface.c | 10 +- grep.c | 14 +- grep.h | 2 +- help.c | 16 +- hex.c | 2 +- hex.h | 2 +- http-backend.c | 22 +- http-fetch.c | 10 +- http-push.c | 34 +- imap-send.c | 8 +- cache-tree.c => index/cache-tree.c | 18 +- cache-tree.h => index/cache-tree.h | 4 +- checkout.c => index/checkout.c | 12 +- checkout.h => index/checkout.h | 2 +- dir-iterator.c => index/dir-iterator.c | 4 +- dir-iterator.h => index/dir-iterator.h | 0 dir.c => index/dir.c | 28 +- dir.h => index/dir.h | 6 +- entry.c => index/entry.c | 18 +- entry.h => index/entry.h | 0 .../fsmonitor--daemon.h | 2 +- fsmonitor-ipc.c => index/fsmonitor-ipc.c | 4 +- fsmonitor-ipc.h => index/fsmonitor-ipc.h | 0 fsmonitor-ll.h => index/fsmonitor-ll.h | 0 .../fsmonitor-path-utils.h | 0 .../fsmonitor-settings.c | 10 +- .../fsmonitor-settings.h | 0 fsmonitor.c => index/fsmonitor.c | 14 +- fsmonitor.h => index/fsmonitor.h | 10 +- name-hash.c => index/name-hash.c | 10 +- name-hash.h => index/name-hash.h | 0 .../parallel-checkout.c | 14 +- .../parallel-checkout.h | 0 pathspec.c => index/pathspec.c | 14 +- pathspec.h => index/pathspec.h | 0 preload-index.c => index/preload-index.c | 18 +- preload-index.h => index/preload-index.h | 0 read-cache-ll.h => index/read-cache-ll.h | 4 +- read-cache.c => index/read-cache.c | 50 +- read-cache.h => index/read-cache.h | 8 +- resolve-undo.c => index/resolve-undo.c | 10 +- resolve-undo.h => index/resolve-undo.h | 2 +- sparse-index.c => index/sparse-index.c | 22 +- sparse-index.h => index/sparse-index.h | 0 split-index.c => index/split-index.c | 8 +- split-index.h => index/split-index.h | 2 +- statinfo.c => index/statinfo.c | 6 +- statinfo.h => index/statinfo.h | 0 symlinks.c => index/symlinks.c | 4 +- symlinks.h => index/symlinks.h | 0 unpack-trees.c => index/unpack-trees.c | 38 +- unpack-trees.h => index/unpack-trees.h | 4 +- wt-status.c => index/wt-status.c | 36 +- wt-status.h => index/wt-status.h | 4 +- khash.h | 2 +- lockfile.c | 2 +- mailinfo.c | 4 +- mailmap.c | 10 +- merge-blobs.c | 4 +- merge-ll.c | 4 +- merge-ort-wrappers.c | 12 +- merge-ort.c | 46 +- merge-ort.h | 2 +- merge.c | 14 +- meson.build | 285 +++---- negotiator/default.c | 10 +- negotiator/noop.c | 2 +- negotiator/skipping.c | 10 +- notes-cache.c | 12 +- notes-merge.c | 22 +- notes-utils.c | 8 +- notes.c | 14 +- alloc.c => odb/alloc.c | 14 +- alloc.h => odb/alloc.h | 0 blob.c => odb/blob.c | 4 +- blob.h => odb/blob.h | 2 +- cbtree.c => odb/cbtree.c | 2 +- cbtree.h => odb/cbtree.h | 0 commit-slab-decl.h => odb/commit-slab-decl.h | 0 commit-slab-impl.h => odb/commit-slab-impl.h | 0 commit-slab.h => odb/commit-slab.h | 4 +- commit.c => odb/commit.c | 42 +- commit.h => odb/commit.h | 2 +- fsck.c => odb/fsck.c | 30 +- fsck.h => odb/fsck.h | 4 +- hash-lookup.c => odb/hash-lookup.c | 6 +- hash-lookup.h => odb/hash-lookup.h | 0 hash.c => odb/hash.c | 2 +- hash.h => odb/hash.h | 2 +- loose.c => odb/loose.c | 12 +- loose.h => odb/loose.h | 0 match-trees.c => odb/match-trees.c | 12 +- match-trees.h => odb/match-trees.h | 0 .../object-file-convert.c | 12 +- .../object-file-convert.h | 2 +- object-file.c => odb/object-file.c | 24 +- object-file.h => odb/object-file.h | 4 +- object-name.c => odb/object-name.c | 40 +- object-name.h => odb/object-name.h | 2 +- object.c => odb/object.c | 20 +- object.h => odb/object.h | 2 +- odb.c => odb/odb.c | 30 +- odb.h => odb/odb.h | 6 +- oid-array.c => odb/oid-array.c | 4 +- oid-array.h => odb/oid-array.h | 2 +- oidmap.c => odb/oidmap.c | 4 +- oidmap.h => odb/oidmap.h | 2 +- oidset.c => odb/oidset.c | 2 +- oidset.h => odb/oidset.h | 0 oidtree.c => odb/oidtree.c | 4 +- oidtree.h => odb/oidtree.h | 4 +- replace-object.c => odb/replace-object.c | 12 +- replace-object.h => odb/replace-object.h | 6 +- odb/source-files.c | 18 +- odb/source-inmemory.c | 8 +- odb/source-loose.c | 12 +- odb/source-packed.c | 10 +- odb/source-packed.h | 2 +- odb/source.c | 4 +- odb/source.h | 4 +- odb/streaming.c | 8 +- odb/streaming.h | 4 +- tag.c => odb/tag.c | 20 +- tag.h => odb/tag.h | 2 +- tmp-objdir.c => odb/tmp-objdir.c | 12 +- tmp-objdir.h => odb/tmp-objdir.h | 0 odb/transaction.h | 2 +- tree-walk.c => odb/tree-walk.c | 16 +- tree-walk.h => odb/tree-walk.h | 2 +- tree.c => odb/tree.c | 16 +- tree.h => odb/tree.h | 2 +- organize/gitorganize-format.c | 266 +++++++ organize/gitorganize-format.h | 38 + organize/labeler-protocol.c | 52 ++ organize/labeler-protocol.h | 15 + organize/organize.c | 487 ++++++++++++ organize/organize.h | 102 +++ organize/organizer-protocol.c | 254 ++++++ organize/organizer-protocol.h | 18 + oss-fuzz/fuzz-commit-graph.c | 4 +- oss-fuzz/fuzz-config.c | 2 +- oss-fuzz/fuzz-pack-headers.c | 2 +- oss-fuzz/fuzz-pack-idx.c | 4 +- bloom.c => pack/bloom.c | 20 +- bloom.h => pack/bloom.h | 0 chunk-format.c => pack/chunk-format.c | 4 +- chunk-format.h => pack/chunk-format.h | 2 +- commit-graph.c => pack/commit-graph.c | 34 +- commit-graph.h => pack/commit-graph.h | 4 +- delta-islands.c => pack/delta-islands.c | 26 +- delta-islands.h => pack/delta-islands.h | 0 delta.h => pack/delta.h | 0 diff-delta.c => pack/diff-delta.c | 2 +- midx-write.c => pack/midx-write.c | 22 +- midx.c => pack/midx.c | 16 +- midx.h => pack/midx.h | 0 .../pack-bitmap-write.c | 38 +- pack-bitmap.c => pack/pack-bitmap.c | 32 +- pack-bitmap.h => pack/pack-bitmap.h | 6 +- pack-check.c => pack/pack-check.c | 12 +- pack-mtimes.c => pack/pack-mtimes.c | 6 +- pack-mtimes.h => pack/pack-mtimes.h | 0 pack-objects.c => pack/pack-objects.c | 10 +- pack-objects.h => pack/pack-objects.h | 6 +- pack-revindex.c => pack/pack-revindex.c | 10 +- pack-revindex.h => pack/pack-revindex.h | 0 pack-write.c => pack/pack-write.c | 18 +- pack.h => pack/pack.h | 2 +- packfile-list.c => pack/packfile-list.c | 4 +- packfile-list.h => pack/packfile-list.h | 0 packfile.c => pack/packfile.c | 40 +- packfile.h => pack/packfile.h | 12 +- patch-delta.c => pack/patch-delta.c | 2 +- prune-packed.c => pack/prune-packed.c | 8 +- prune-packed.h => pack/prune-packed.h | 0 pseudo-merge.c => pack/pseudo-merge.c | 14 +- pseudo-merge.h => pack/pseudo-merge.h | 0 reachable.c => pack/reachable.c | 28 +- reachable.h => pack/reachable.h | 0 repack-cruft.c => pack/repack-cruft.c | 6 +- repack-filtered.c => pack/repack-filtered.c | 4 +- repack-geometry.c => pack/repack-geometry.c | 8 +- repack-midx.c => pack/repack-midx.c | 14 +- repack-promisor.c => pack/repack-promisor.c | 8 +- repack.c => pack/repack.c | 12 +- repack.h => pack/repack.h | 2 +- server-info.c => pack/server-info.c | 20 +- server-info.h => pack/server-info.h | 0 pager.c | 8 +- parse-options-cb.c | 10 +- path-walk.c | 28 +- path-walk.h | 2 +- path.c | 12 +- path.h | 2 +- progress.c | 2 +- prompt.c | 4 +- rebase-interactive.c | 14 +- refs/files-backend.c | 24 +- refs/iterator.c | 2 +- ls-refs.c => refs/ls-refs.c | 14 +- ls-refs.h => refs/ls-refs.h | 0 pack-refs.c => refs/pack-refs.c | 10 +- pack-refs.h => refs/pack-refs.h | 0 refs/packed-backend.c | 14 +- refs/ref-cache.c | 6 +- refs/ref-cache.h | 2 +- ref-filter.c => refs/ref-filter.c | 36 +- ref-filter.h => refs/ref-filter.h | 6 +- reflog-walk.c => refs/reflog-walk.c | 12 +- reflog-walk.h => refs/reflog-walk.h | 0 reflog.c => refs/reflog.c | 16 +- reflog.h => refs/reflog.h | 2 +- refs/refs-internal.h | 2 +- refs.c => refs/refs.c | 26 +- refs.h => refs/refs.h | 8 +- refspec.c => refs/refspec.c | 8 +- refspec.h => refs/refspec.h | 0 refs/reftable-backend.c | 20 +- worktree.c => refs/worktree.c | 16 +- worktree.h => refs/worktree.h | 2 +- replay.c | 10 +- replay.h | 2 +- rerere.c | 18 +- reset.c | 14 +- reset.h | 4 +- bisect.c => revision/bisect.c | 30 +- bisect.h => revision/bisect.h | 0 blame.c => revision/blame.c | 30 +- blame.h => revision/blame.h | 4 +- commit-reach.c => revision/commit-reach.c | 14 +- commit-reach.h => revision/commit-reach.h | 4 +- decorate.c => revision/decorate.c | 4 +- decorate.h => revision/decorate.h | 0 graph.c => revision/graph.c | 8 +- graph.h => revision/graph.h | 2 +- line-log.c => revision/line-log.c | 28 +- line-log.h => revision/line-log.h | 2 +- line-range.c => revision/line-range.c | 6 +- line-range.h => revision/line-range.h | 0 .../list-objects-filter-options.c | 6 +- .../list-objects-filter-options.h | 2 +- .../list-objects-filter.c | 20 +- .../list-objects-filter.h | 0 list-objects.c => revision/list-objects.c | 26 +- list-objects.h => revision/list-objects.h | 0 list.h => revision/list.h | 0 log-tree.c => revision/log-tree.c | 42 +- log-tree.h => revision/log-tree.h | 0 pretty.c => revision/pretty.c | 18 +- pretty.h => revision/pretty.h | 0 revision.c => revision/revision.c | 68 +- revision.h => revision/revision.h | 18 +- shallow.c => revision/shallow.c | 28 +- shallow.h => revision/shallow.h | 6 +- run-command.c | 8 +- scalar.c | 14 +- sequencer.c | 44 +- sequencer.h | 2 +- alias.c => setup/alias.c | 4 +- alias.h => setup/alias.h | 0 config.c => setup/config.c | 16 +- config.h => setup/config.h | 2 +- environment.c => setup/environment.c | 16 +- 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 | 12 +- repo-settings.h => setup/repo-settings.h | 0 repository.c => setup/repository.c | 24 +- repository.h => setup/repository.h | 4 +- setup.c => setup/setup.c | 20 +- setup.h => setup/setup.h | 2 +- version.c => setup/version.c | 2 +- version.h => setup/version.h | 0 shell.c | 2 +- simple-ipc.h | 2 +- sub-process.c | 2 +- submodule-config.c | 14 +- submodule-config.h | 4 +- submodule.c | 36 +- t/helper/test-advise.c | 6 +- t/helper/test-bitmap.c | 8 +- t/helper/test-bloom.c | 8 +- t/helper/test-bundle-uri.c | 6 +- t/helper/test-cache-tree.c | 10 +- t/helper/test-config.c | 4 +- t/helper/test-delta.c | 2 +- t/helper/test-dir-iterator.c | 2 +- t/helper/test-dump-cache-tree.c | 12 +- t/helper/test-dump-fsmonitor.c | 6 +- t/helper/test-dump-split-index.c | 8 +- t/helper/test-dump-untracked-cache.c | 8 +- t/helper/test-find-pack.c | 8 +- t/helper/test-fsmonitor-client.c | 8 +- t/helper/test-hash-speed.c | 2 +- t/helper/test-lazy-init-name-hash.c | 10 +- t/helper/test-match-trees.c | 10 +- t/helper/test-name-hash.c | 2 +- t/helper/test-pack-deltas.c | 10 +- t/helper/test-pack-mtimes.c | 8 +- t/helper/test-parse-pathspec-file.c | 2 +- t/helper/test-partial-clone.c | 6 +- t/helper/test-path-utils.c | 6 +- t/helper/test-path-walk.c | 18 +- t/helper/test-pkt-line.c | 4 +- t/helper/test-proc-receive.c | 4 +- t/helper/test-progress.c | 2 +- t/helper/test-reach.c | 12 +- t/helper/test-read-cache.c | 10 +- t/helper/test-read-graph.c | 10 +- t/helper/test-read-midx.c | 14 +- t/helper/test-ref-store.c | 12 +- t/helper/test-reftable.c | 2 +- t/helper/test-repository.c | 14 +- t/helper/test-revision-walking.c | 14 +- t/helper/test-rot13-filter.c | 2 +- t/helper/test-scrap-cache-tree.c | 10 +- t/helper/test-serve-v2.c | 6 +- t/helper/test-sha1.c | 2 +- t/helper/test-sha256.c | 2 +- t/helper/test-submodule-config.c | 10 +- t/helper/test-submodule-nested-repo-config.c | 4 +- t/helper/test-submodule.c | 6 +- t/helper/test-subprocess.c | 2 +- t/helper/test-synthesize.c | 12 +- t/helper/test-trace2.c | 4 +- t/helper/test-userdiff.c | 6 +- t/helper/test-write-cache.c | 6 +- t/meson.build | 1 + t/t0096-organize.sh | 739 ++++++++++++++++++ t/unit-tests/lib-oid.h | 2 +- t/unit-tests/test-lib.c | 2 +- t/unit-tests/u-dir.c | 2 +- t/unit-tests/u-example-decorate.c | 6 +- t/unit-tests/u-list-objects-filter-options.c | 2 +- t/unit-tests/u-odb-inmemory.c | 6 +- t/unit-tests/u-oid-array.c | 2 +- t/unit-tests/u-oidmap.c | 4 +- t/unit-tests/u-oidtree.c | 4 +- t/unit-tests/u-reftable-stack.c | 2 +- t/unit-tests/u-strcmp-offset.c | 2 +- tempfile.h | 2 +- trace.c | 4 +- trace2.c | 4 +- trace2/tr2_cfg.c | 2 +- trace2/tr2_sysenv.c | 4 +- trace2/tr2_tgt_event.c | 6 +- trace2/tr2_tgt_normal.c | 6 +- trace2/tr2_tgt_perf.c | 6 +- trailer.c | 8 +- trailer.h | 2 +- bundle-uri.c => transport/bundle-uri.c | 16 +- bundle-uri.h => transport/bundle-uri.h | 0 bundle.c => transport/bundle.c | 24 +- bundle.h => transport/bundle.h | 2 +- connect.c => transport/connect.c | 26 +- connect.h => transport/connect.h | 2 +- connected.c => transport/connected.c | 10 +- connected.h => transport/connected.h | 0 .../fetch-negotiator.c | 4 +- .../fetch-negotiator.h | 0 .../fetch-object-info.c | 10 +- .../fetch-object-info.h | 4 +- fetch-pack.c => transport/fetch-pack.c | 50 +- fetch-pack.h => transport/fetch-pack.h | 6 +- .../git-curl-compat.h | 0 http-walker.c => transport/http-walker.c | 16 +- http.c => transport/http.c | 22 +- http.h => transport/http.h | 2 +- pkt-line.c => transport/pkt-line.c | 4 +- pkt-line.h => transport/pkt-line.h | 0 .../promisor-remote.c | 14 +- .../promisor-remote.h | 2 +- protocol-caps.c => transport/protocol-caps.c | 12 +- protocol-caps.h => transport/protocol-caps.h | 0 protocol.c => transport/protocol.c | 6 +- protocol.h => transport/protocol.h | 0 remote-curl.c => transport/remote-curl.c | 26 +- remote.c => transport/remote.c | 30 +- remote.h => transport/remote.h | 4 +- send-pack.c => transport/send-pack.c | 24 +- send-pack.h => transport/send-pack.h | 0 serve.c => transport/serve.c | 22 +- serve.h => transport/serve.h | 0 sideband.c => transport/sideband.c | 6 +- sideband.h => transport/sideband.h | 0 .../transport-helper.c | 22 +- .../transport-internal.h | 2 +- transport.c => transport/transport.c | 38 +- transport.h => transport/transport.h | 6 +- upload-pack.c => transport/upload-pack.c | 42 +- upload-pack.h => transport/upload-pack.h | 0 walker.c => transport/walker.c | 18 +- walker.h => transport/walker.h | 2 +- urlmatch.h | 2 +- versioncmp.c | 2 +- 609 files changed, 6909 insertions(+), 3368 deletions(-) create mode 100644 .gitorganize create mode 100644 Documentation/git-organize.adoc create mode 100644 builtin/organize.c create mode 100644 contrib/organize/git-layout.map create mode 100755 contrib/organize/labeler create mode 100755 contrib/organize/organizer rename combine-diff.c => diff/combine-diff.c (99%) rename diff-lib.c => diff/diff-lib.c (98%) rename diff-merges.c => diff/diff-merges.c (98%) rename diff-merges.h => diff/diff-merges.h (100%) rename diff-no-index.c => diff/diff-no-index.c (98%) rename diff.c => diff/diff.c (99%) rename diff.h => diff/diff.h (99%) rename diffcore-break.c => diff/diffcore-break.c (98%) 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 (99%) rename patch-ids.c => diff/patch-ids.c (97%) rename patch-ids.h => diff/patch-ids.h (98%) rename range-diff.c => diff/range-diff.c (98%) 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 (98%) rename xdiff-interface.h => diff/xdiff-interface.h (99%) rename cache-tree.c => index/cache-tree.c (99%) rename cache-tree.h => index/cache-tree.h (97%) rename checkout.c => index/checkout.c (91%) rename checkout.h => index/checkout.h (94%) 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 (98%) 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 (97%) rename fsmonitor-settings.h => index/fsmonitor-settings.h (100%) rename fsmonitor.c => index/fsmonitor.c (99%) rename fsmonitor.h => index/fsmonitor.h (94%) 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 (98%) 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 (94%) 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 (91%) rename resolve-undo.c => index/resolve-undo.c (96%) rename resolve-undo.h => index/resolve-undo.h (97%) rename sparse-index.c => index/sparse-index.c (98%) 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 (98%) rename statinfo.c => index/statinfo.c (97%) 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 (98%) rename wt-status.c => index/wt-status.c (99%) rename wt-status.h => index/wt-status.h (98%) rename alloc.c => odb/alloc.c (94%) rename alloc.h => odb/alloc.h (100%) rename blob.c => odb/blob.c (89%) rename blob.h => odb/blob.h (96%) rename cbtree.c => odb/cbtree.c (99%) rename cbtree.h => odb/cbtree.h (100%) rename commit-slab-decl.h => odb/commit-slab-decl.h (100%) rename commit-slab-impl.h => odb/commit-slab-impl.h (100%) rename commit-slab.h => odb/commit-slab.h (97%) rename commit.c => odb/commit.c (98%) rename commit.h => odb/commit.h (99%) rename fsck.c => odb/fsck.c (99%) rename fsck.h => odb/fsck.h (99%) rename hash-lookup.c => odb/hash-lookup.c (97%) rename hash-lookup.h => odb/hash-lookup.h (100%) rename hash.c => odb/hash.c (99%) rename hash.h => odb/hash.h (99%) rename loose.c => odb/loose.c (97%) rename loose.h => odb/loose.h (100%) rename match-trees.c => odb/match-trees.c (98%) rename match-trees.h => odb/match-trees.h (100%) rename object-file-convert.c => odb/object-file-convert.c (98%) rename object-file-convert.h => odb/object-file-convert.h (96%) rename object-file.c => odb/object-file.c (99%) rename object-file.h => odb/object-file.h (99%) rename object-name.c => odb/object-name.c (98%) rename object-name.h => odb/object-name.h (99%) rename object.c => odb/object.c (98%) rename object.h => odb/object.h (99%) rename odb.c => odb/odb.c (98%) rename odb.h => odb/odb.h (99%) rename oid-array.c => odb/oid-array.c (97%) rename oid-array.h => odb/oid-array.h (99%) rename oidmap.c => odb/oidmap.c (97%) rename oidmap.h => odb/oidmap.h (99%) rename oidset.c => odb/oidset.c (99%) rename oidset.h => odb/oidset.h (100%) rename oidtree.c => odb/oidtree.c (98%) rename oidtree.h => odb/oidtree.h (97%) rename replace-object.c => odb/replace-object.c (94%) rename replace-object.h => odb/replace-object.h (96%) rename tag.c => odb/tag.c (95%) rename tag.h => odb/tag.h (96%) rename tmp-objdir.c => odb/tmp-objdir.c (97%) rename tmp-objdir.h => odb/tmp-objdir.h (100%) rename tree-walk.c => odb/tree-walk.c (99%) rename tree-walk.h => odb/tree-walk.h (99%) rename tree.c => odb/tree.c (96%) rename tree.h => odb/tree.h (98%) create mode 100644 organize/gitorganize-format.c create mode 100644 organize/gitorganize-format.h create mode 100644 organize/labeler-protocol.c create mode 100644 organize/labeler-protocol.h create mode 100644 organize/organize.c create mode 100644 organize/organize.h create mode 100644 organize/organizer-protocol.c create mode 100644 organize/organizer-protocol.h rename bloom.c => pack/bloom.c (98%) rename bloom.h => pack/bloom.h (100%) rename chunk-format.c => pack/chunk-format.c (98%) rename chunk-format.h => pack/chunk-format.h (98%) rename commit-graph.c => pack/commit-graph.c (99%) rename commit-graph.h => pack/commit-graph.h (99%) rename delta-islands.c => pack/delta-islands.c (97%) rename delta-islands.h => pack/delta-islands.h (100%) rename delta.h => pack/delta.h (100%) rename diff-delta.c => pack/diff-delta.c (99%) rename midx-write.c => pack/midx-write.c (99%) rename midx.c => pack/midx.c (99%) rename midx.h => pack/midx.h (100%) rename pack-bitmap-write.c => pack/pack-bitmap-write.c (98%) rename pack-bitmap.c => pack/pack-bitmap.c (99%) rename pack-bitmap.h => pack/pack-bitmap.h (98%) rename pack-check.c => pack/pack-check.c (97%) rename pack-mtimes.c => pack/pack-mtimes.c (97%) rename pack-mtimes.h => pack/pack-mtimes.h (100%) rename pack-objects.c => pack/pack-objects.c (97%) rename pack-objects.h => pack/pack-objects.h (99%) rename pack-revindex.c => pack/pack-revindex.c (99%) rename pack-revindex.h => pack/pack-revindex.h (100%) rename pack-write.c => pack/pack-write.c (98%) rename pack.h => pack/pack.h (99%) rename packfile-list.c => pack/packfile-list.c (96%) rename packfile-list.h => pack/packfile-list.h (100%) rename packfile.c => pack/packfile.c (99%) rename packfile.h => pack/packfile.h (98%) rename patch-delta.c => pack/patch-delta.c (98%) rename prune-packed.c => pack/prune-packed.c (89%) rename prune-packed.h => pack/prune-packed.h (100%) rename pseudo-merge.c => pack/pseudo-merge.c (99%) rename pseudo-merge.h => pack/pseudo-merge.h (100%) rename reachable.c => pack/reachable.c (95%) rename reachable.h => pack/reachable.h (100%) rename repack-cruft.c => pack/repack-cruft.c (97%) rename repack-filtered.c => pack/repack-filtered.c (96%) rename repack-geometry.c => pack/repack-geometry.c (98%) rename repack-midx.c => pack/repack-midx.c (99%) rename repack-promisor.c => pack/repack-promisor.c (97%) rename repack.c => pack/repack.c (98%) rename repack.h => pack/repack.h (99%) rename server-info.c => pack/server-info.c (96%) rename server-info.h => pack/server-info.h (100%) rename ls-refs.c => refs/ls-refs.c (96%) rename ls-refs.h => refs/ls-refs.h (100%) rename pack-refs.c => refs/pack-refs.c (92%) rename pack-refs.h => refs/pack-refs.h (100%) rename ref-filter.c => refs/ref-filter.c (99%) rename ref-filter.h => refs/ref-filter.h (98%) rename reflog-walk.c => refs/reflog-walk.c (98%) rename reflog-walk.h => refs/reflog-walk.h (100%) rename reflog.c => refs/reflog.c (98%) rename reflog.h => refs/reflog.h (99%) rename refs.c => refs/refs.c (99%) rename refs.h => refs/refs.h (99%) rename refspec.c => refs/refspec.c (99%) rename refspec.h => refs/refspec.h (100%) rename worktree.c => refs/worktree.c (99%) rename worktree.h => refs/worktree.h (99%) rename bisect.c => revision/bisect.c (98%) rename bisect.h => revision/bisect.h (100%) rename blame.c => revision/blame.c (99%) rename blame.h => revision/blame.h (98%) rename commit-reach.c => revision/commit-reach.c (99%) rename commit-reach.h => revision/commit-reach.h (99%) rename decorate.c => revision/decorate.c (97%) rename decorate.h => revision/decorate.h (100%) rename graph.c => revision/graph.c (99%) rename graph.h => revision/graph.h (99%) rename line-log.c => revision/line-log.c (98%) rename line-log.h => revision/line-log.h (96%) rename line-range.c => revision/line-range.c (98%) 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 (99%) rename list-objects-filter.c => revision/list-objects-filter.c (98%) rename list-objects-filter.h => revision/list-objects-filter.h (100%) rename list-objects.c => revision/list-objects.c (96%) rename list-objects.h => revision/list-objects.h (100%) rename list.h => revision/list.h (100%) rename log-tree.c => revision/log-tree.c (98%) 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 (98%) rename shallow.c => revision/shallow.c (98%) rename shallow.h => revision/shallow.h (97%) 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 (98%) 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 (97%) rename repo-settings.h => setup/repo-settings.h (100%) rename repository.c => setup/repository.c (97%) rename repository.h => setup/repository.h (99%) rename setup.c => setup/setup.c (99%) rename setup.h => setup/setup.h (99%) rename version.c => setup/version.c (98%) rename version.h => setup/version.h (100%) create mode 100755 t/t0096-organize.sh rename bundle-uri.c => transport/bundle-uri.c (99%) rename bundle-uri.h => transport/bundle-uri.h (100%) rename bundle.c => transport/bundle.c (97%) rename bundle.h => transport/bundle.h (97%) rename connect.c => transport/connect.c (99%) rename connect.h => transport/connect.h (98%) rename connected.c => transport/connected.c (97%) rename connected.h => transport/connected.h (100%) rename fetch-negotiator.c => transport/fetch-negotiator.c (90%) rename fetch-negotiator.h => transport/fetch-negotiator.h (100%) rename fetch-object-info.c => transport/fetch-object-info.c (96%) rename fetch-object-info.h => transport/fetch-object-info.h (91%) rename fetch-pack.c => transport/fetch-pack.c (98%) rename fetch-pack.h => transport/fetch-pack.h (97%) rename git-curl-compat.h => transport/git-curl-compat.h (100%) rename http-walker.c => transport/http-walker.c (98%) rename http.c => transport/http.c (99%) rename http.h => transport/http.h (99%) rename pkt-line.c => transport/pkt-line.c (99%) rename pkt-line.h => transport/pkt-line.h (100%) rename promisor-remote.c => transport/promisor-remote.c (99%) rename promisor-remote.h => transport/promisor-remote.h (99%) rename protocol-caps.c => transport/protocol-caps.c (95%) rename protocol-caps.h => transport/protocol-caps.h (100%) rename protocol.c => transport/protocol.c (96%) rename protocol.h => transport/protocol.h (100%) rename remote-curl.c => transport/remote-curl.c (99%) rename remote.c => transport/remote.c (99%) rename remote.h => transport/remote.h (99%) rename send-pack.c => transport/send-pack.c (98%) rename send-pack.h => transport/send-pack.h (100%) rename serve.c => transport/serve.c (96%) rename serve.h => transport/serve.h (100%) rename sideband.c => transport/sideband.c (99%) rename sideband.h => transport/sideband.h (100%) rename transport-helper.c => transport/transport-helper.c (99%) rename transport-internal.h => transport/transport-internal.h (98%) rename transport.c => transport/transport.c (98%) rename transport.h => transport/transport.h (98%) rename upload-pack.c => transport/upload-pack.c (98%) rename upload-pack.h => transport/upload-pack.h (100%) rename walker.c => transport/walker.c (97%) rename walker.h => transport/walker.h (97%)
base-commit: 1a3e64c6c4a623626ff0687008732a8e007e2a1c
Signature · 1 line
2.54.0
RFC PATCH 1/14 organize: add the git organize builtin
Add "git organize", a builtin that reconciles a source tree against a layout the project declares. A project records where each file belongs, and git organize reports the files that sit elsewhere and, on request, moves them into place. As .gitignore declares what stays untracked and .mailmap declares canonical author names, git organize adds .gitorganize, which declares the directory a file belongs in.
.gitorganize has three sections. [scope] lists the pathspecs of the files in scope, one per line; with no [scope] section nothing is in scope. [layout] is the project's placement map, hand-authored: ordered "label:value = directory" rules, and a file takes the directory of the first rule its labels satisfy, so rule order matters. Git lists role:public = . and role:program = . ahead of the component rules, so an interface header or a program that also matches a component stays at root. [labels] records each file's labels, one line per source in scope with its key=value labels.
"git organize status" reads [labels] and reports the files that sit outside their directory, the backlog, and a recorded path that no longer exists. It runs nothing and changes nothing.
"git organize apply" moves each out-of-place file into its directory as one git apply --index transaction; a content-identical rename lets git log --follow and git blame track the file. It stages the result and repoints each moved file's [labels] line to its new path.
The .gitorganize reader and writer live in organize/gitorganize-format.c; the engine that plans and applies the moves lives in organize/organize.c.
--- .gitignore | 1 + Documentation/git-organize.adoc | 82 ++++++++ Documentation/meson.build | 1 + Makefile | 3 + builtin.h | 1 + builtin/organize.c | 110 +++++++++++ command-list.txt | 1 + git.c | 1 + meson.build | 3 + organize/gitorganize-format.c | 261 ++++++++++++++++++++++++++ organize/gitorganize-format.h | 38 ++++ organize/organize.c | 320 ++++++++++++++++++++++++++++++++ organize/organize.h | 77 ++++++++ t/meson.build | 1 + t/t0096-organize.sh | 185 ++++++++++++++++++ 15 files changed, 1085 insertions(+) create mode 100644 Documentation/git-organize.adoc create mode 100644 builtin/organize.c create mode 100644 organize/gitorganize-format.c create mode 100644 organize/gitorganize-format.h create mode 100644 organize/organize.c create mode 100644 organize/organize.h create mode 100755 t/t0096-organize.sh
.gitignore +1 -0
@@ -118,6 +118,7 @@ /git-mv /git-name-rev /git-notes +/git-organize /git-p4 /git-pack-redundant /git-pack-objects
Documentation/git-organize.adoc new file +82 -0
82 lines not on this page · raw message
Documentation/meson.build +1 -0
@@ -98,6 +98,7 @@ manpages = { 'git-mv.adoc' : 1, 'git-name-rev.adoc' : 1, 'git-notes.adoc' : 1, + 'git-organize.adoc' : 1, 'git-p4.adoc' : 1, 'git-pack-objects.adoc' : 1, 'git-pack-refs.adoc' : 1,
Makefile +3 -0
@@ -1237,6 +1237,8 @@ LIB_OBJS += oid-array.o LIB_OBJS += oidmap.o LIB_OBJS += oidset.o LIB_OBJS += oidtree.o +LIB_OBJS += organize/gitorganize-format.o +LIB_OBJS += organize/organize.o LIB_OBJS += pack-bitmap-write.o LIB_OBJS += pack-bitmap.o LIB_OBJS += pack-check.o
@@ -1465,6 +1467,7 @@ BUILTIN_OBJS += builtin/multi-pack-index.o BUILTIN_OBJS += builtin/mv.o BUILTIN_OBJS += builtin/name-rev.o BUILTIN_OBJS += builtin/notes.o +BUILTIN_OBJS += builtin/organize.o BUILTIN_OBJS += builtin/pack-objects.o ifndef WITH_BREAKING_CHANGES BUILTIN_OBJS += builtin/pack-redundant.o
builtin.h +1 -0
@@ -224,6 +224,7 @@ int cmd_multi_pack_index(int argc, const char **argv, const char *prefix, structint cmd_mv (int argc,const char **argv,const char *prefix,struct repository *repo);int cmd_name_rev (int argc,const char **argv,const char *prefix,struct repository *repo);int cmd_notes (int argc,const char **argv,const char *prefix,struct repository *repo); +int cmd_organize (int argc,const char **argv,const char *prefix,struct repository *repo);int cmd_pack_objects (int argc,const char **argv,const char *prefix,struct repository *repo);int cmd_pack_redundant (int argc,const char **argv,const char *prefix,struct repository *repo);int cmd_patch_id (int argc,const char **argv,const char *prefix,struct repository *repo);
builtin/organize.c new file +110 -0
110 lines not on this page · raw message
command-list.txt +1 -0
@@ -147,6 +147,7 @@ git-multi-pack-index plumbingmanipulators git-mv mainporcelain worktree git-name-rev plumbinginterrogators git-notes mainporcelain +git-organize ancillarymanipulators complete git-p4 foreignscminterface git-pack-objects plumbingmanipulators git-pack-redundant plumbinginterrogators
git.c +1 -0
@@ -617,6 +617,7 @@ static struct cmd_struct commands[] = { { "mv", cmd_mv, RUN_SETUP | NEED_WORK_TREE }, { "name-rev", cmd_name_rev, RUN_SETUP }, { "notes", cmd_notes, RUN_SETUP }, + { "organize", cmd_organize, RUN_SETUP | NEED_WORK_TREE }, { "pack-objects", cmd_pack_objects, RUN_SETUP }, #ifndef WITH_BREAKING_CHANGES { "pack-redundant", cmd_pack_redundant, RUN_SETUP | NO_PARSEOPT | DEPRECATED },
meson.build +3 -0
@@ -442,6 +442,8 @@ libgit_sources = [ 'oidmap.c', 'oidset.c', 'oidtree.c', + 'organize/gitorganize-format.c', + 'organize/organize.c', 'pack-bitmap-write.c', 'pack-bitmap.c', 'pack-check.c',
@@ -677,6 +679,7 @@ builtin_sources = [ 'builtin/mv.c', 'builtin/name-rev.c', 'builtin/notes.c', + 'builtin/organize.c', 'builtin/pack-objects.c', 'builtin/pack-refs.c', 'builtin/patch-id.c',
organize/gitorganize-format.c new file +261 -0
261 lines not on this page · raw message
organize/gitorganize-format.h new file +38 -0
@@ -0,0 +1,38 @@ +#ifndef GITORGANIZE_FORMAT_H +#define GITORGANIZE_FORMAT_H + +#include "strbuf.h" +#include "string-list.h" + +struct layout_rule { +char *label; +char *value; +char *dir; +}; + +/* +* The parsed .gitorganize file: the [scope] pathspecs, the [layout] rules, the +* verbatim [scope] and [layout] header (round-tripped on write), and the +* [labels] records (each path -> its "k=value ..." string in util). +*/ +struct gitorganize { +struct string_list scope; +struct layout_rule *rules; +size_t rules_nr, rules_alloc; +struct strbuf header; +struct string_list records; +}; +#define GITORGANIZE_INIT { \ + .scope = STRING_LIST_INIT_DUP, \ + .header = STRBUF_INIT, \ + .records = STRING_LIST_INIT_DUP, \ +} + +void gitorganize_clear (struct gitorganize *g); +const char *read_path_token (const char *p,struct strbuf *out); +struct layout_rule *layout_match (struct gitorganize *g,const char *labels, +struct strbuf *value_buf); +void gitorganize_read (struct gitorganize *g); +void gitorganize_write (struct gitorganize *g); + +#endif /* GITORGANIZE_FORMAT_H */
organize/organize.c new file +320 -0
320 lines not on this page · raw message
organize/organize.h new file +77 -0
77 lines not on this page · raw message
t/meson.build +1 -0
@@ -127,6 +127,7 @@ integration_tests = [ 't0092-diagnose.sh', 't0093-verify-cache-df-gap.sh', 't0095-bloom.sh', + 't0096-organize.sh', 't0100-previous.sh', 't0101-at-syntax.sh', 't0200-gettext-basic.sh',
t/t0096-organize.sh new file +185 -0
185 lines not on this page · raw message
Signature · 1 line
2.54.0
RFC PATCH 2/14 organize: add the labeler, organizer, and apply --labels-only
In reply to Michael MontalboThe core builtin reconciles a tree against a hand-written [labels] section, but nothing fills [labels] in and every move is a bare rename. A project needs to record where each file belongs and to repoint the references a move breaks.
Add the two configured commands that supply that judgment, the way a merge driver's command is configured in git config:
organize.labeler records a [labels] line per root file in scope
organize.organizer returns edits for the files a move touches
git organize apply --labels-only runs the labeler and writes [labels], preserving the lines of already placed files. Plain git organize apply, when an organizer is configured, hands it the standing moves over a pipe; the organizer returns a patch of the edits and a reason for any move it declines. The moves and the patch apply as one git apply transaction, so a failure leaves the tree untouched. A declined move keeps its file and its [labels] line.
The organizer patch is validated before anything applies. It may edit a referring file, or rename a moved file as it edits it, but it must not add, delete, or copy files, and any rename must match a planned move.
Add a reference labeler and organizer under contrib/organize for Git's own tree. The labeler places each source by the "area:" prefix its own commits carry most often, mined with git log --follow: the area its authors name need not be its filename, so ws.c files under whitespace and diffcore-pickaxe.c under pickaxe. git-layout.map groups these prefix tokens into components under [tokens]; odb owns object, object-file, blob, tag, and so on. A source whose prefix is a broad area name that also swept its neighbors, or that has too little history to name an area, falls back to its filename through the [names] section. A source that neither section places, but that changes chiefly alongside one component, is promoted there. A source that couples broadly stays at the root. Each record also carries the prefix, the #include coupling, and the co-change profile as advisory signals. The organizer repoints the moved build object in the Makefile and meson.build, and rewrites the #include of each moved header to its new path across the tree.
--- Documentation/git-organize.adoc | 108 ++++++- Makefile | 2 + builtin/organize.c | 48 +++- contrib/organize/git-layout.map | 41 +++ contrib/organize/labeler | 333 ++++++++++++++++++++++ contrib/organize/organizer | 334 ++++++++++++++++++++++ meson.build | 2 + organize/gitorganize-format.c | 5 + organize/labeler-protocol.c | 52 ++++ organize/labeler-protocol.h | 15 + organize/organize.c | 165 ++++++++++- organize/organize.h | 50 +++- organize/organizer-protocol.c | 254 +++++++++++++++++ organize/organizer-protocol.h | 18 ++ t/t0096-organize.sh | 479 +++++++++++++++++++++++++++++--- 15 files changed, 1817 insertions(+), 89 deletions(-) create mode 100644 contrib/organize/git-layout.map create mode 100755 contrib/organize/labeler create mode 100755 contrib/organize/organizer create mode 100644 organize/labeler-protocol.c create mode 100644 organize/labeler-protocol.h create mode 100644 organize/organizer-protocol.c create mode 100644 organize/organizer-protocol.h
Documentation/git-organize.adoc +93 -15
@@ -11,6 +11,7 @@ SYNOPSIS [verse] 'git organize status' 'git organize apply' +'git organize apply' --labels-only [--reseed] DESCRIPTION
@@ -31,18 +32,36 @@ rule it satisfies places it; a file matching no rule is the backlog. source in scope, `<path> <key>=<value> ...`, with every label the project defines. A placed file is listed too, so its `[labels]` line records its labels, independently of the directory name. Only a label named in a rule -places a file. +places a file; a label named in no rule places nothing and is recorded for a +reader. + +The labeler and organizer live in config: `organize.labeler` and +`organize.organizer`. A label is a key and value the labeler attaches to a +file. `git organize apply --labels-only` runs the labeler and records the +labels. A file is out of place when its matching rule names a directory it +is not in yet. `git organize status` reads `[labels]` and reports the out-of-place files, the backlog, a file in scope that `[labels]` does not record, and a -recorded path that no longer exists. It runs nothing and -changes nothing. +recorded path that no longer exists. status runs no +configured command and changes nothing. `git organize apply` reconciles the tree. It moves each out-of-place file -into its directory. A move is a content-identical rename, so `git log ---follow` and `git blame` track the file exactly. apply stages the result -and repoints each carved file's `[labels]` line to its new path, carrying -its labels. It commits nothing. apply requires a clean worktree. +into its directory. A move that git organize makes on its own is a +content-identical rename, so `git log --follow` and `git blame` track the +file exactly. apply stages the result and repoints each carved file's +`[labels]` line to its new path, carrying its labels. It commits nothing. + +A move can require an edit elsewhere, such as repointing a reference in +another file, or an edit to the moved file itself, such as repointing its +own references. A project supplies those edits with an organizer, its +`organize.organizer` command. apply hands the organizer its +moves. The organizer returns a patch of the edits and, for any move it +cannot complete, a reason to skip it. When the organizer edits a file as it +moves, git's rename detection matches it while its similarity stays above +the rename threshold. apply applies the moves and the patch as one +transaction. With no organizer configured, apply moves the files and makes +no other edit. COMMANDS
@@ -52,13 +71,59 @@ status:: Report the files whose placement value names a directory they are not in (the moves), the backlog (recorded files with no matching rule), a file in scope that `[labels]` does not record, and a recorded - path that no longer exists. Changes nothing. + path that no longer exists. Runs no configured + command and changes nothing. apply:: Move each out-of-place file into its directory as a content-identical - rename, repoint each carved file's `[labels]` line to its new path, and - stage the result. apply requires a clean worktree, so the change can be - discarded as a whole. + rename, apply the organizer's edits, repoint each carved file's + `[labels]` line to its new path, and stage the result. apply requires a + clean worktree, so the change can be discarded as a whole. ++ +With `--labels-only`, apply instead records the `[labels]` line for every root +file in scope and stages the file. A file already recorded keeps its line, so a +placement chosen by hand or in an earlier run stands; the labeler only seeds a +file that has no line yet. With `--reseed`, re-derive every line from the +labeler, discarding the recorded placements. This is the only path that runs a +labeler; `git organize apply` without `--labels-only` and `git organize status` +never do. + + +OPTIONS +------- + +--labels-only:: + With apply, run the labeler and record the labels; move no file. A + recorded file keeps its line; the labeler only seeds a file that has no + line yet. + +--reseed:: + With apply `--labels-only`, re-derive every `[labels]` line from the + labeler, discarding the recorded placements. Use it to re-apply the + labeler after its map changes; without it a recorded line is kept. + + +CONFIGURATION +------------- +organize.labeler:: + The command that records the labels. `git organize apply + --labels-only` runs it over the root files in scope. It writes one + record per file on its standard output: the path, a NUL, its + space-separated `key=value` labels, a NUL. A file in scope with no + record is unrecorded, reported apart from the backlog. Use user or + system config for this setting; do + not take it from a repository file. + +organize.organizer:: + The command that returns move edits. apply runs it over the moves. It + reads the pending moves on its standard input and returns a patch and + any skip reasons; see PROTOCOL. Optional. Without it, apply performs the + moves and makes no other edit. Use user or system config for this + setting; do not take it from a repository file. + +The labeler and organizer are trusted, the way a clean or smudge filter or a +hook is trusted. Set them in user or system config, so a repository you clone +cannot supply its own. FILES
@@ -71,10 +136,23 @@ FILES file takes the directory of the first rule its labels satisfy, and a file matching no rule is the backlog. `[labels]` holds the recorded labels, one `<path> <key>=<value> ...` line per source in scope, - including placed files. The project writes `[scope]` and `[layout]`; the - move apply repoints a carved file's line. A `#` line is a comment; git - organize rewrites the file whole, keeping the hand-authored `[scope]` - and `[layout]` verbatim. + including placed files. The project writes `[scope]` and `[layout]`; + `git organize apply --labels-only` writes `[labels]`, and the move apply + repoints a carved file's line. A `#` line is a comment; git organize + rewrites the file whole, keeping the hand-authored `[scope]` and + `[layout]` verbatim. + + +PROTOCOL +-------- +apply speaks a line protocol with the organizer over a pipe. It writes the +version line `git-organize 1 organize`, then a `move <src> <dst> <label>` +line per pending move, with C-quoted paths. The organizer replies with the +same version line. For each declined move, it writes `reject <src> +<reason>`. It may then write `patch`, followed by a git patch that runs to +the end of its output. The patch may edit referring files and may rename a +moved file as it edits it, but it must not add, delete, or copy files, and +any rename must match a planned move. GIT
Makefile +2 -0
@@ -1238,7 +1238,9 @@ LIB_OBJS += oidmap.o LIB_OBJS += oidset.o LIB_OBJS += oidtree.o LIB_OBJS += organize/gitorganize-format.o +LIB_OBJS += organize/labeler-protocol.o LIB_OBJS += organize/organize.o +LIB_OBJS += organize/organizer-protocol.o LIB_OBJS += pack-bitmap-write.o LIB_OBJS += pack-bitmap.o LIB_OBJS += pack-check.o
builtin/organize.c +41 -7
85 lines not on this page · raw message
contrib/organize/git-layout.map new file +41 -0
41 lines not on this page · raw message
contrib/organize/labeler new file +333 -0
333 lines not on this page · raw message
contrib/organize/organizer new file +334 -0
334 lines not on this page · raw message
meson.build +2 -0
@@ -443,7 +443,9 @@ libgit_sources = [ 'oidset.c', 'oidtree.c', 'organize/gitorganize-format.c', + 'organize/labeler-protocol.c', 'organize/organize.c', + 'organize/organizer-protocol.c', 'pack-bitmap-write.c', 'pack-bitmap.c', 'pack-check.c',
organize/gitorganize-format.c +5 -0
@@ -246,6 +246,11 @@ void gitorganize_write(struct gitorganize *g)else strbuf_addstr (&out,"[layout]\n" );strbuf_addstr (&out,"[labels]\n" ); +strbuf_addstr (&out, +"# The recorded placement of each source; edit a line to " +"change it.\n" +"# apply --labels-only fills in unrecorded sources; " +"--reseed re-derives all.\n" );for (size_t i =0 ; i < g->records.nr; i++) {const char *labels = g->records.items[i].util;
organize/labeler-protocol.c new file +52 -0
52 lines not on this page · raw message
organize/labeler-protocol.h new file +15 -0
@@ -0,0 +1,15 @@ +#ifndef LABELER_PROTOCOL_H +#define LABELER_PROTOCOL_H + +struct string_list ; + +/* +* The labeler protocol. git organize runs the configured labeler and +* records, in `labeled` (path -> its "k=value ..." string in util), the +* labels it returns for every file in `scoped_files`. The labeler writes one +* `path \0 labels \0` record per file. +*/ +void run_labeler (const char *cmd,struct string_list *scoped_files, +struct string_list *labeled); + +#endif /* LABELER_PROTOCOL_H */
organize/organize.c +151 -14
235 lines not on this page · raw message
organize/organize.h +36 -14
77 lines not on this page · raw message
organize/organizer-protocol.c new file +254 -0
254 lines not on this page · raw message
organize/organizer-protocol.h new file +18 -0
@@ -0,0 +1,18 @@ +#ifndef ORGANIZER_PROTOCOL_H +#define ORGANIZER_PROTOCOL_H + +struct organize_plan ; +struct strbuf ; +struct string_list ; + +/* +* The organizer protocol. git organize sends the standing moves to the +* configured organizer, which may reject moves or return a patch of content +* edits. run_organizer validates that patch against the plan, fills `patch` +* with the edits and `claimed` with the moves the organizer renames itself, +* and records each rejected move on the plan. +*/ +void run_organizer (const char *command,struct organize_plan *plan, +struct strbuf *patch,struct string_list *claimed); + +#endif /* ORGANIZER_PROTOCOL_H */
t/t0096-organize.sh +440 -39
543 lines not on this page · raw message
Signature · 1 line
2.54.0
RFC PATCH 3/14 organize: add status --exit-code
In reply to Michael Montalbogit organize status reports and always returns zero. A project that keeps its tree reconciled needs status to fail when the tree drifts, so a check can gate on the result.
Add --exit-code. status returns 1 when a file is out of place or a recorded path no longer exists, and 0 otherwise. A standing backlog alone does not fail it: a backlog file matches no rule, so it is not out of place. --exit-code changes no output.
--- Documentation/git-organize.adoc | 15 ++++++++++++--- builtin/organize.c | 12 +++++++----- t/t0096-organize.sh | 20 +++++++++++++++----- 3 files changed, 34 insertions(+), 13 deletions(-)
Documentation/git-organize.adoc +12 -3
@@ -9,7 +9,7 @@ git-organize - Reconcile a source tree against a declared layout SYNOPSIS -------- [verse] -'git organize status' +'git organize status' [--exit-code] 'git organize apply' 'git organize apply' --labels-only [--reseed]
@@ -44,7 +44,9 @@ is not in yet. `git organize status` reads `[labels]` and reports the out-of-place files, the backlog, a file in scope that `[labels]` does not record, and a recorded path that no longer exists. status runs no -configured command and changes nothing. +configured command and changes nothing. With `--exit-code` it exits +non-zero when a file is out of place, a file in scope is unrecorded, or a +recorded path is missing; a standing backlog alone does not fail it. `git organize apply` reconciles the tree. It moves each out-of-place file into its directory. A move that git organize makes on its own is a
@@ -72,7 +74,9 @@ status:: in (the moves), the backlog (recorded files with no matching rule), a file in scope that `[labels]` does not record, and a recorded path that no longer exists. Runs no configured - command and changes nothing. + command and changes nothing. With `--exit-code`, exit non-zero when a + file is out of place, a file in scope is unrecorded, or a recorded path + is missing. apply:: Move each out-of-place file into its directory as a content-identical
@@ -92,6 +96,11 @@ never do. OPTIONS ------- +--exit-code:: + Exit non-zero from status when a file is out of place, a file in scope + is unrecorded, or a recorded path is missing. A standing backlog alone + does not fail it. Changes no output. + --labels-only:: With apply, run the labeler and record the labels; move no file. A recorded file keeps its line; the labeler only seeds a file that has no
builtin/organize.c +7 -5
@@ -15,13 +15,13 @@#include "repository.h" static const char *const organize_usage[] = { -"git organize status" , +"git organize status [--exit-code]" ,"git organize apply" ,"git organize apply --labels-only [--reseed]" ,NULL }; -static int organize_status (struct repository *repo) +static int organize_status (struct repository *repo,int exit_code) {struct organize_plan plan =ORGANIZE_PLAN_INIT ;int to_move, backlog, unrecorded, orphans;
@@ -67,7 +67,7 @@ static int organize_status(struct repository *repo) }organize_plan_release (&plan); -return 0 ; +return exit_code && (to_move || unrecorded || orphans) ?1 :0 ; }static int organize_apply (struct repository *repo)
@@ -106,8 +106,10 @@ int cmd_organize(int argc,const char *prefix, struct repository *repo) { - int labels_only = 0, reseed = 0; + int exit_code = 0, labels_only = 0, reseed = 0;struct option options[] = { +OPT_BOOL (0 ,"exit-code" , &exit_code, +N_ ("exit non-zero from status when a file is out of place" )),OPT_BOOL (0 ,"labels-only" , &labels_only,N_ ("with apply, run the labeler and record the labels" )), OPT_BOOL(0, "reseed", &reseed,
@@ -126,7 +128,7 @@ int cmd_organize(int argc,if (!strcmp (subcmd,"status" )) {if (labels_only)die (_ ("git organize: --labels-only is an apply option" )); - ret =organize_status (repo); + ret =organize_status (repo, exit_code); }else if (!strcmp (subcmd,"apply" )) {if (labels_only) {organize_run_labeler (repo, reseed);
t/t0096-organize.sh +15 -5
@@ -156,6 +156,10 @@ test_expect_success 'status reports the files to move' ' test_grep "2 file(s) would move" actual ' +test_expect_success 'status --exit-code fails when a file is out of place' ' + test_expect_code 1 git organize status --exit-code +' + test_expect_success 'apply moves files as content-identical renames and repoints [labels]' ' git organize apply && git diff --cached -M --name-status >actual &&
@@ -169,6 +173,7 @@ test_expect_success 'apply moves files as content-identical renames and repoints git diff --cached --name-only >staged && test_grep "^.gitorganize$" staged && git commit -m reconciled && + git organize status --exit-code && git organize status >actual && test_grep "nothing to move" actual && test_grep "^odb/blob.c component=odb" .gitorganize &&
@@ -435,7 +440,8 @@ test_expect_success 'a basename shared across directories does not collide' ' test_path_is_file odb/dup.c && test_path_is_file sub/dup.c && test_path_is_missing dup.c && - git commit -m reconciled + git commit -m reconciled && + git organize status --exit-code ) '
@@ -484,17 +490,20 @@ test_expect_success 'a file in scope with no recorded label is unrecorded' ' git commit -m declare && git organize apply --labels-only && git commit -m labels && - # a.c is recorded but matches no rule: backlog + # a.c is recorded but matches no rule, so it is backlog; a + # standing backlog alone does not fail --exit-code git organize status >actual && test_grep "backlog:" actual && test_grep "^ a.c$" actual && - # a source in scope that [labels] never recorded is unrecorded + git organize status --exit-code && + # a source in scope that [labels] never recorded is unrecorded drift echo b >b.c && git add b.c && git commit -m add-b && git organize status >actual && test_grep "in scope but unrecorded:" actual && - test_grep "^ b.c$" actual + test_grep "^ b.c$" actual && + test_expect_code 1 git organize status --exit-code ) '
@@ -519,7 +528,8 @@ test_expect_success 'status reports a recorded path that no longer exists' ' git commit -m drop-b && git organize status >actual && test_grep "declared but missing" actual && - test_grep " b.c" actual + test_grep " b.c" actual && + test_expect_code 1 git organize status --exit-code ) '
Signature · 1 line
2.54.0
RFC PATCH 4/14 organize: add the --label selector
In reply to Michael Montalbostatus and apply act on every out-of-place file at once. To reconcile one group at a time, a caller needs a way to name a subset.
Add --label <key[=value]>. A key=value selector matches a file whose recorded labels include it; a bare key matches any value of that label. The selector is repeatable and the matches combine, so a file matching any selector is included. A selector can name any recorded label, not only the ones [layout] places files by.
git organize apply --label component=<name> then reconciles one component at a time, which is how a large layout is carved in reviewable steps.
--- Documentation/git-organize.adoc | 118 ++++++++++++++++---------- builtin/organize.c | 25 ++++-- organize/organize.c | 34 +++++++- organize/organize.h | 7 +- t/t0096-organize.sh | 143 ++++++++++++++++++++++++++++++++ 5 files changed, 270 insertions(+), 57 deletions(-)
Documentation/git-organize.adoc +74 -44
@@ -9,8 +9,8 @@ git-organize - Reconcile a source tree against a declared layout SYNOPSIS -------- [verse] -'git organize status' [--exit-code] -'git organize apply' +'git organize status' [--exit-code] [--label <key[=value]>...] +'git organize apply' [--label <key[=value]>...] 'git organize apply' --labels-only [--reseed]
@@ -24,16 +24,18 @@ file belongs in. `.gitorganize` at the repository root has three sections. `[scope]` names the files in scope, one pathspec per line; with no `[scope]` section -nothing is in scope. `[layout]` is the project's placement map, authored by -hand: ordered `<label>:<value> = <directory>` rules (`.` is the repository -root). A file's labels are matched against the rules in order, and the first -rule it satisfies places it; a file matching no rule is the backlog. -`[labels]` holds the recorded labels, one line per -source in scope, `<path> <key>=<value> ...`, with every label the project -defines. A placed file is listed too, so its `[labels]` line records its -labels, independently of the directory name. Only a label named in a rule -places a file; a label named in no rule places nothing and is recorded for a -reader. +nothing is in scope. `[layout]` is the project's map of where each file +belongs, authored by hand: ordered `<label>:<value> = <directory>` rules +(`.` is the repository root). A file's labels are matched against the rules in +order, and the first rule it satisfies gives the file its directory; a file +matching no rule is the backlog. +`[labels]` holds the recorded labels: one line, `<path> <key>=<value> +...`, per recorded in-scope source, with every label the project +defines. apply repoints a moved file's line to its new path and keeps +it, so a placed file keeps its record. A file that already sits inside a +`[layout]` directory before it is recorded has no line; its location +alone places it. Only a label named in a rule places a file; a label +named in no rule places nothing and is recorded for a reader. The labeler and organizer live in config: `organize.labeler` and `organize.organizer`. A label is a key and value the labeler attaches to a
@@ -60,7 +62,7 @@ own references. A project supplies those edits with an organizer, its `organize.organizer` command. apply hands the organizer its moves. The organizer returns a patch of the edits and, for any move it cannot complete, a reason to skip it. When the organizer edits a file as it -moves, git's rename detection matches it while its similarity stays above +moves, Git's rename detection matches it while its similarity stays above the rename threshold. apply applies the moves and the patch as one transaction. With no organizer configured, apply moves the files and makes no other edit.
@@ -70,25 +72,28 @@ COMMANDS -------- status:: - Report the files whose placement value names a directory they are not + Report the files whose matching rule names a directory they are not in (the moves), the backlog (recorded files with no matching rule), a file in scope that `[labels]` does not record, and a recorded path that no longer exists. Runs no configured - command and changes nothing. With `--exit-code`, exit non-zero when a - file is out of place, a file in scope is unrecorded, or a recorded path - is missing. + command and changes nothing. With `--label`, limit the moves to the + files a label selects (see OPTIONS); the backlog, unrecorded, and + missing lists are always reported. With `--exit-code`, exit non-zero + when a file is out of place, a file in scope is unrecorded, or a + recorded path is missing. apply:: Move each out-of-place file into its directory as a content-identical rename, apply the organizer's edits, repoint each carved file's - `[labels]` line to its new path, and stage the result. apply requires a - clean worktree, so the change can be discarded as a whole. + `[labels]` line to its new path, and stage the result. With `--label`, + reconcile only the files a label selects. apply requires a clean + worktree, so the change can be discarded as a whole. + With `--labels-only`, apply instead records the `[labels]` line for every root file in scope and stages the file. A file already recorded keeps its line, so a -placement chosen by hand or in an earlier run stands; the labeler only seeds a +directory chosen by hand or in an earlier run stands; the labeler only seeds a file that has no line yet. With `--reseed`, re-derive every line from the -labeler, discarding the recorded placements. This is the only path that runs a +labeler, discarding the recorded lines. This is the only path that runs a labeler; `git organize apply` without `--labels-only` and `git organize status` never do.
@@ -96,6 +101,14 @@ never do. OPTIONS ------- +--label <key[=value]>:: + Limit the moves that status reports and apply makes to the files a + label selects. A `<key>=<value>` selector matches a file whose + recorded labels include it; a bare `<key>` matches any value of that + label. A selector can name any recorded label, not only the ones + `[layout]` places files by. Repeatable; the selectors combine, so a + file matching any of them is included. + --exit-code:: Exit non-zero from status when a file is out of place, a file in scope is unrecorded, or a recorded path is missing. A standing backlog alone
@@ -107,9 +120,11 @@ OPTIONS line yet. --reseed:: - With apply `--labels-only`, re-derive every `[labels]` line from the - labeler, discarding the recorded placements. Use it to re-apply the - labeler after its map changes; without it a recorded line is kept. + With apply `--labels-only`, discard the recorded lines and re-derive + them from the labeler. A file already placed in a `[layout]` + directory keeps its line, because the labeler derives labels from the + sources at the root. Use it to re-apply the labeler after its map + changes; without it a recorded line is kept. CONFIGURATION
@@ -119,20 +134,23 @@ organize.labeler:: --labels-only` runs it over the root files in scope. It writes one record per file on its standard output: the path, a NUL, its space-separated `key=value` labels, a NUL. A file in scope with no - record is unrecorded, reported apart from the backlog. Use user or - system config for this setting; do - not take it from a repository file. + record is unrecorded, reported apart from the backlog. This command is + honored from config at any level, repo-local `.git/config` included, and + so requires the trust you give `core.hooksPath`. organize.organizer:: The command that returns move edits. apply runs it over the moves. It reads the pending moves on its standard input and returns a patch and any skip reasons; see PROTOCOL. Optional. Without it, apply performs the - moves and makes no other edit. Use user or system config for this - setting; do not take it from a repository file. + moves and makes no other edit. This command is honored from config at + any level, repo-local `.git/config` included, and so requires the trust + you give `core.hooksPath`. The labeler and organizer are trusted, the way a clean or smudge filter or a -hook is trusted. Set them in user or system config, so a repository you clone -cannot supply its own. +hook is trusted. Both are honored from config at any level, repo-local +`.git/config` included. A repository you clone does not ship its `.git/config`, +so a clone cannot supply them by that route, but treat a command written into +`.git/config` with the same care you give `core.hooksPath`. FILES
@@ -140,16 +158,17 @@ FILES `.gitorganize`:: The declaration, at the repository root, in three sections. `[scope]` names the files in scope, one pathspec per line; with no `[scope]` - section nothing is in scope. `[layout]` is the project's placement map: - ordered `<label>:<value> = <directory>` rules (`.` is the root), where a - file takes the directory of the first rule its labels satisfy, and a - file matching no rule is the backlog. `[labels]` holds the recorded - labels, one `<path> <key>=<value> ...` line per source in scope, - including placed files. The project writes `[scope]` and `[layout]`; - `git organize apply --labels-only` writes `[labels]`, and the move apply - repoints a carved file's line. A `#` line is a comment; git organize - rewrites the file whole, keeping the hand-authored `[scope]` and - `[layout]` verbatim. + section nothing is in scope. `[layout]` is the project's map of where + each file belongs: ordered `<label>:<value> = <directory>` rules (`.` is + the root), where a file takes the directory of the first rule its labels + satisfy, and a file matching no rule is the backlog. `[labels]` holds + the recorded labels, one `<path> <key>=<value> ...` line per in-scope + source that a rule, not its location, places; a file already inside a + `[layout]` directory is placed by its location and has no line. The + project writes `[scope]` and `[layout]`; `git organize apply + --labels-only` writes `[labels]`, and the move apply repoints a carved + file's line. A `#` line is a comment; git organize rewrites the file + whole, keeping the hand-authored `[scope]` and `[layout]` verbatim. PROTOCOL
@@ -159,9 +178,20 @@ version line `git-organize 1 organize`, then a `move <src> <dst> <label>` line per pending move, with C-quoted paths. The organizer replies with the same version line. For each declined move, it writes `reject <src> <reason>`. It may then write `patch`, followed by a git patch that runs to -the end of its output. The patch may edit referring files and may rename a -moved file as it edits it, but it must not add, delete, or copy files, and -any rename must match a planned move. +the end of its output. + +Before it runs `git apply`, git organize checks each entry in the patch with +Git's own diff-header parser and refuses the patch if an entry adds, deletes, +or copies a file, changes a file's mode, or renames a file to anything but a +planned move. An in-place edit must repoint a move: it must leave the file +where it is and mention a directory the plan moves into. So the patch git +organize accepts is limited to edits of referring files and to renames that +match a planned move. + +The organizer is a trusted, config-defined command, honored the way a clean or +smudge filter is. These checks catch a well-meaning organizer's mistakes; they +do not sandbox a hostile one, and they do not certify that the whole patch is +sound. GIT
builtin/organize.c +16 -9
@@ -6,27 +6,30 @@* are not in yet (the moves), the backlog (files with no matching rule), and a * declared path that no longer exists. apply moves the misplaced files and * stages the result; apply --labels-only instead runs the labeler and records -* the labels. +* the labels. --label <key[=value]> (repeatable) limits status and the move +* apply to files carrying a matching label. */ #include "builtin.h" #include "gettext.h" #include "organize/organize.h" #include "parse-options.h" #include "repository.h" +#include "strvec.h" static const char *const organize_usage[] = { -"git organize status [--exit-code]" , -"git organize apply" , +"git organize status [--exit-code] [--label <key[=value]>...]" , +"git organize apply [--label <key[=value]>...]" ,"git organize apply --labels-only [--reseed]" ,NULL }; -static int organize_status (struct repository *repo,int exit_code) +static int organize_status (struct repository *repo, +const struct strvec *selectors,int exit_code) {struct organize_plan plan =ORGANIZE_PLAN_INIT ;int to_move, backlog, unrecorded, orphans; -organize_plan_build (repo, &plan); +organize_plan_build (repo, selectors, &plan); to_move = (int )plan.moves_nr; backlog = (int )plan.backlog.nr; unrecorded = (int )plan.unrecorded.nr;
@@ -70,12 +73,12 @@ static int organize_status(struct repository *repo, int exit_code)return exit_code && (to_move || unrecorded || orphans) ?1 :0 ; } -static int organize_apply (struct repository *repo) +static int organize_apply (struct repository *repo,const struct strvec *selectors) {struct organize_plan plan =ORGANIZE_PLAN_INIT ;int moved =0 , rejected =0 ; -organize_plan_build (repo, &plan); +organize_plan_build (repo, selectors, &plan);if (!plan.moves_nr) {printf (_ ("organize apply: nothing to do\n" ));organize_plan_release (&plan);
@@ -106,8 +109,11 @@ int cmd_organize(int argc,const char *prefix, struct repository *repo) { + struct strvec selectors = STRVEC_INIT;int exit_code =0 , labels_only =0 , reseed =0 ;struct option options[] = { +OPT_STRVEC (0 ,"label" , &selectors,N_ ("key[=value]" ), +N_ ("limit to files carrying a matching label (repeatable)" )),OPT_BOOL (0 ,"exit-code" , &exit_code,N_ ("exit non-zero from status when a file is out of place" )), OPT_BOOL(0, "labels-only", &labels_only,
@@ -128,7 +134,7 @@ int cmd_organize(int argc,if (!strcmp (subcmd,"status" )) {if (labels_only)die (_ ("git organize: --labels-only is an apply option" )); - ret =organize_status (repo, exit_code); + ret =organize_status (repo, &selectors, exit_code); }else if (!strcmp (subcmd,"apply" )) {if (labels_only) {organize_run_labeler (repo, reseed);
@@ -136,11 +142,12 @@ int cmd_organize(int argc, "staged; nothing is committed.\n")); ret =0 ; }else { - ret =organize_apply (repo); + ret =organize_apply (repo, &selectors); } }else {die (_ ("git organize: unknown subcommand '%s'" ), subcmd); } +strvec_clear (&selectors);return ret; }
organize/organize.c +32 -2
@@ -29,6 +29,30 @@ static const char *organize_command(struct repository *repo, const char *key)return cmd; } +/* +* Whether a file's labels satisfy any --label selector. labels is the file's +* space-separated "key=value" list. A "key=value" selector must equal a label +* exactly; a bare "key" matches any value of that label. +*/ +static int label_selected (const char *labels,struct string_list *selectors) +{ +for (size_t i =0 ; i < selectors->nr; i++) { +const char *selector = selectors->items[i].string; +size_t sellen =strlen (selector); +int bare = !strchr (selector,'=' ); + +for (const char *l = labels; *l; ) { +const char *sp =strchrnul (l,' ' ); + +if (!strncmp (l, selector, sellen) && + (bare ? l[sellen] =='=' : sp == l + sellen)) +return 1 ; + l = *sp ? sp +1 : sp; + } + } +return 0 ; +} +/* * The [layout] rule whose directory equals `path`'s directory, or NULL when * `path` is a root file or its directory matches no rule. A file in a [layout]
@@ -133,14 +157,19 @@ static void add_move(struct organize_plan *plan, const char *src, m->skip_reason =NULL ; } -void organize_plan_build (struct repository *repo,struct organize_plan *plan) +void organize_plan_build (struct repository *repo,const struct strvec *selectors, +struct organize_plan *plan) {struct organize_ctx ctx =ORGANIZE_CTX_INIT ; +struct string_list want =STRING_LIST_INIT_NODUP ;struct string_list seen =STRING_LIST_INIT_DUP ;struct strbuf value_buf =STRBUF_INIT ;organize_ctx_load (repo, &ctx); +for (size_t i =0 ; i < selectors->nr; i++) +string_list_append (&want, selectors->v[i]); +/* * Classify each recorded entry by the rule its labels match. A file * already in the rule's directory is in place. A file in another
@@ -175,7 +204,7 @@ void organize_plan_build(struct repository *repo, struct organize_plan *plan)if (!strcmp (dst.buf, path)) plan->in_place++;/* already in place */ -else +else if (!want.nr ||label_selected (labels, &want))add_move (plan, path,strbuf_detach (&dst,NULL ), rule->value);strbuf_release (&dst); }
@@ -207,6 +236,7 @@ void organize_plan_build(struct repository *repo, struct organize_plan *plan)string_list_append (&plan->orphans, ctx.gitorg.records.items[i].string);organize_ctx_release (&ctx); +string_list_clear (&want,0 );string_list_clear (&seen,0 );strbuf_release (&value_buf); }
organize/organize.h +5 -2
@@ -4,6 +4,7 @@#include "string-list.h" struct repository ; +struct strvec ;/* * The git organize engine. A project declares where each file belongs, and
@@ -74,9 +75,11 @@ struct organize_plan {* rule names a directory it is not in as a move. Also record the backlog * (recorded files that match no rule), the unrecorded files (in scope, * no [labels] line), and the orphans (declared paths -* that no longer exist). +* that no longer exist). selectors limit the moves to files carrying one of the +* named labels; an empty strvec keeps them all. */ -void organize_plan_build (struct repository *repo,struct organize_plan *plan); +void organize_plan_build (struct repository *repo,const struct strvec *selectors, +struct organize_plan *plan);/* * Perform the plan: consult the organizer when one is configured, then apply
t/t0096-organize.sh +143 -0
155 lines not on this page · raw message
Signature · 1 line
2.54.0
RFC PATCH 5/14 organize: declare Git's scope and layout
In reply to Michael MontalboAuthor .gitorganize for Git's own tree. [scope] puts the root *.c and *.h sources in scope. [layout] keeps a public interface (role:public) and a standalone program (role:program) at the root, and routes each component's sources to a directory of the same name: transport sources to transport/, diff sources to diff/, and so on for the thirteen components.
This is the map alone. The next step records a label per source; the carves that follow move each component into place.
--- .gitorganize | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitorganize
.gitorganize new file +19 -0
@@ -0,0 +1,19 @@ +[scope] +:(glob)*.c +:(glob)*.h +[layout] +role:public = . +role:program = . +component:odb = odb +component:refs = refs +component:pack = pack +component:diff = diff +component:merge = merge +component:revision = revision +component:index = index +component:setup = setup +component:convert = convert +component:transport = transport +component:notes = notes +component:submodule = submodule +component:archive = archive
Signature · 1 line
2.54.0
RFC PATCH 6/14 organize: record a label for every source in scope
In reply to Michael MontalboRun the reference labeler over Git's tree and record its labels in .gitorganize. Each source's component comes from the "area:" prefix its commits carry most often, consolidated by git-layout.map; a source the prefix cannot place falls back to its filename, and one that neither places but changes chiefly alongside a component is promoted there. Standalone programs stay at the root, and a source that stays diffuse is component=?. Each line also carries the prefix, the #include coupling, and the co-change profile as advisory signals.
status now reports the whole to-move set across thirteen components:
495 in scope (113 in place, 303 to move, 79 backlog)
The 79 backlog sources, recorded component=? with role=lib, are left at the root as the frontier. A public header or program also records component=? but is kept at the root by its role.
--- .gitorganize | 475 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 475 insertions(+)
.gitorganize +475 -0
@@ -17,3 +17,478 @@ component:transport = transport component:notes = notes component:submodule = submodule component:archive = archive +[labels] +# The recorded placement of each source; edit a line to change it. +# apply --labels-only fills in unrecorded sources; --reseed re-derives all. +abspath.c component=? role=lib prefix=abspath cochange=setup:12,diff:6,refs:5,index:3,submodule:3 +abspath.h component=? role=public prefix=abspath cochange=setup:1 +add-interactive.c component=? role=lib prefix=add-interactive includes=index:3,odb:2,diff:1,refs:1,revision:1 cochange=diff:19,index:16,revision:16,odb:7,refs:6 +add-interactive.h component=? role=public prefix=add-patch cochange=odb:2 +add-patch.c component=? role=lib prefix=add-patch includes=setup:3,index:2,odb:2,diff:1 cochange=index:10,transport:8,odb:6,merge:4,refs:4 +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 +alloc.c component=odb role=lib prefix=alloc includes=odb:6,setup:1 cochange=odb:54,revision:8,diff:6,pack:6,index:3 +alloc.h component=odb role=header prefix=alloc cochange=odb:16,refs: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 +archive-zip.c component=archive role=lib prefix=archive-zip includes=diff:2,archive:1,odb:1,setup:1 cochange=archive:57,diff:12,odb:8,index:7,transport:6 +archive.c component=archive role=lib prefix=archive includes=odb:5,setup:3,convert:2,archive:1,index:1 cochange=archive:54,convert:42,odb:39,index:36,revision:31 +archive.h component=archive role=header prefix=archive includes=index:1 cochange=archive:58,index:3,revision:3,convert:2,diff:1 +attr.c component=convert role=lib prefix=attr includes=odb:3,setup:3,index:2,convert:1,refs:1 cochange=index:55,convert:54,diff:41,setup:26,revision:22 +attr.h component=convert role=header prefix=attr cochange=convert:50,index:13,diff:9,archive:8,setup:3 +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 +blob.c component=odb role=lib prefix=object includes=odb:2 cochange=odb:131,transport:12,pack:11,revision:10,refs:5 +blob.h component=odb role=header prefix=blob includes=odb:1 cochange=odb:33,revision:4,pack:3,transport:2 +bloom.c component=pack role=lib prefix=bloom includes=odb:4,diff:2,pack:2,setup:2 cochange=pack:38,revision:25,diff:15,odb:6,index:2 +bloom.h component=pack role=header prefix=bloom cochange=pack:28,revision:12,odb: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 +bundle-uri.c component=transport role=lib prefix=bundle-uri includes=transport:5,odb:1,refs:1,setup:1 cochange=transport:28,setup:7,odb:4,merge:2,pack:2 +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 +cbtree.c component=odb role=lib prefix=cbtree includes=odb:1 cochange=odb:9,diff:1,merge:1,pack:1 +cbtree.h component=odb role=header prefix=cbtree cochange=odb:12,pack:3,setup:1,transport: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 +chunk-format.c component=pack role=lib prefix=chunk-format includes=odb:1,pack:1 cochange=pack:20,odb:1,transport:1 +chunk-format.h component=pack role=header prefix=chunk-format includes=odb:1 cochange=pack:15,odb:2,setup:1,transport: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 +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-graph.c component=pack role=lib prefix=commit-graph includes=odb:9,pack:4,setup:2,refs:1,revision:1 cochange=pack:206,odb:125,revision:47,transport:34,setup:22 +commit-graph.h component=pack role=header prefix=commit-graph includes=odb:2 cochange=pack:92,odb:14,setup:9,revision:8,transport:5 +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 +commit-slab-decl.h component=odb role=header prefix=commit-slab cochange=odb:6,revision:1 +commit-slab-impl.h component=odb role=header prefix=commit-slab cochange=odb:7,pack:3,revision:1,setup:1,transport:1 +commit-slab.h component=odb role=header prefix=commit-slab includes=odb:2 cochange=odb:8,revision:2,transport:2,index:1,merge:1 +commit.c component=odb role=lib prefix=commit includes=odb:10,setup:4,revision:3,diff:1,index:1 cochange=odb:403,revision:147,transport:87,pack:57,setup:45 +commit.h component=odb role=header prefix=commit includes=odb:1 cochange=odb:237,revision:205,transport:49,pack:25,notes:22 +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 +connected.h component=transport role=header prefix=connected cochange=transport:23 +convert.c component=convert role=lib prefix=convert includes=convert:2,index:1,merge:1,odb:1,setup:1 cochange=convert:59,diff:43,index:41,setup:30,transport:30 +convert.h component=convert role=header prefix=convert includes=odb:1 cochange=convert:29,index:18,diff:8,setup:8,archive:4 +copy.c component=? role=lib prefix=copy cochange=pack:6,transport:5,diff:3,odb:3,merge:2 +copy.h component=? role=public prefix=copy cochange=transport:3,merge:2,convert:1,setup:1 +credential.c component=? role=lib prefix=credential includes=setup:3 cochange=transport:13,index:4,odb:4,convert:2,merge:2 +credential.h component=? role=public prefix=credential cochange=transport:6 +csum-file.c component=? role=lib prefix=csum-file includes=odb:1 cochange=pack:49,odb:13,index:10,transport:10,diff:8 +csum-file.h component=? role=public prefix=csum-file includes=odb:1 cochange=pack:44,odb:8,diff:5,index:5,transport:5 +ctype.c component=? role=lib prefix=ctype cochange=setup:3,index:2,odb:1,pack:1,refs: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 +delta-islands.c component=pack role=lib prefix=delta-islands includes=odb:6,pack:4,diff:1,refs:1,setup:1 cochange=pack:20,odb:17,revision:7,transport:7,diff:5 +delta-islands.h component=pack role=header prefix=delta-islands cochange=pack:6 +delta.h component=pack role=header prefix=diff-delta cochange=pack:27,odb:19,diff:5,transport:3,convert: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-delta.c component=pack role=lib prefix=diff-delta includes=pack:1 cochange=pack:24,diff:7,index:2,odb:2,transport:2 +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 +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 +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 +fetch-negotiator.h component=transport role=header prefix=fetch-negotiator cochange=transport:7,setup:3,odb:1,pack:1,revision:1 +fetch-object-info.c component=transport role=lib prefix=cat-file includes=transport:3,odb:2 cochange=transport:7,odb:1 +fetch-object-info.h component=transport role=header prefix=cat-file includes=transport:2 cochange=transport:7,odb:1 +fetch-pack.c component=transport role=lib prefix=fetch-pack includes=transport:8,odb:7,setup:4,pack:3,revision:2 cochange=transport:303,odb:96,revision:46,pack:40,setup:25 +fetch-pack.h component=transport role=header prefix=fetch-pack includes=odb:1,revision:1,transport:1 cochange=transport:108,odb:2,pack:2,refs:2,diff:1 +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=? +fsck.c component=odb role=lib prefix=fsck includes=odb:9,setup:3,convert:1,index:1,pack:1 cochange=odb:113,revision:46,transport:43,pack:20,setup:15 +fsck.h component=odb role=header prefix=fsck includes=odb:2 cochange=odb:50,diff:5,revision:5,transport:5,refs:4 +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 +git-curl-compat.h component=transport role=header prefix=git-curl-compat cochange=transport:22 +git-zlib.c component=? role=lib prefix=git-zlib cochange=archive:2,odb:1,transport:1 +git-zlib.h component=? role=public prefix=git-zlib cochange=archive:3,setup:2,odb:1,transport:1 +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 +hash-lookup.c component=odb role=lib prefix=hash includes=odb:2,index:1 cochange=pack:14,odb:12,diff:1,index:1,merge:1 +hash-lookup.h component=odb role=header prefix=hash-lookup cochange=odb:10,pack:8,diff:1,merge:1,revision:1 +hash.c component=odb role=lib prefix=hash includes=odb:1 cochange=odb:15,diff:2,setup:2,index:1,transport:1 +hash.h component=odb role=header prefix=hash includes=setup:1 cochange=odb:32,pack:11,index:9,diff:7,transport:4 +hashmap.c component=? role=lib prefix=hashmap cochange=diff:33,revision:19,index:17,refs:13,submodule:13 +hashmap.h component=? role=public prefix=hashmap cochange=diff:39,revision:23,index:18,submodule:14,refs:13 +help.c component=? role=lib prefix=help includes=setup:4,index:1,odb:1,refs:1,transport:1 cochange=setup:19,transport:19,diff:9,index:8,odb:7 +help.h component=? role=public prefix=help cochange=diff:1,odb:1,revision:1,transport:1 +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 +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 +khash.h component=? role=public prefix=khash includes=odb:1 cochange=odb:7,pack:5,diff:4,revision:4,index:3 +kwset.c component=? role=lib prefix=kwset cochange=convert:2,diff:1,pack:1,revision:1 +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 +loose.c component=odb role=lib prefix=loose includes=odb:5,setup:1 cochange=odb:31,pack:18,setup:7,transport:6,refs:2 +loose.h component=odb role=header prefix=loose cochange=odb:8,setup:3 +ls-refs.c component=refs role=lib prefix=ls-refs includes=setup:3,refs:2,odb:1,transport:1 cochange=refs:26,transport:17,pack:10,revision:5,odb:4 +ls-refs.h component=refs role=header prefix=ls-refs cochange=transport:11,refs:5,submodule:1 +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 +mailmap.h component=? role=public prefix=mailmap cochange=setup:8,revision:4,transport:2,diff:1,index:1 +match-trees.c component=odb role=lib prefix=match-trees includes=odb:5,setup:1 cochange=odb:33,index:15,notes:15,revision:12,pack:10 +match-trees.h component=odb role=header prefix=match-trees cochange=merge:1,odb:1 +mem-pool.c component=? role=lib prefix=mem-pool cochange=index:6 +mem-pool.h component=? role=public prefix=mem-pool cochange=index:4 +merge-blobs.c component=merge role=lib prefix=object-store includes=merge:2,odb:2 cochange=merge:9,notes:3,diff:2,convert:1,odb:1 +merge-blobs.h component=merge role=header prefix=merge-blobs cochange=merge:2 +merge-ll.c component=merge role=lib prefix=merge-ll includes=convert:2,diff:1,merge:1,setup:1 cochange=merge:11,diff:6,transport:4,convert:2,index:2 +merge-ll.h component=merge role=header prefix=merge-ll cochange=merge:11,diff:2,convert:1,notes:1 +merge-ort-wrappers.c component=merge role=lib prefix=merge-ort includes=odb:4,merge:2,index:1,setup:1 cochange=merge:7,odb:2,notes:1,revision:1 +merge-ort-wrappers.h component=merge role=header prefix=merge includes=merge:1 cochange=merge:9,odb:2,revision:1 +merge-ort.c component=merge role=lib prefix=merge-ort includes=odb:8,index:6,diff:3,merge:2,revision:2 cochange=diff:41,merge:32,index:23,odb:23,revision:16 +merge-ort.h component=merge role=header prefix=merge-ort includes=odb:1 cochange=merge:19,odb:2,revision:2,diff:1 +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 +midx-write.c component=pack role=lib prefix=midx-write includes=pack:5,odb:2,revision:2,refs:1,setup:1 cochange=pack:100,odb:20,refs:7,transport:6,setup:4 +midx.c component=pack role=lib prefix=midx includes=pack:5,index:1,odb:1,setup:1 cochange=pack:220,odb:34,transport:11,index:6,setup:4 +midx.h component=pack role=header prefix=midx cochange=pack:134,odb:5,setup:2,transport:2,refs: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 +notes-merge.h component=notes role=header prefix=notes-merge includes=notes:1 cochange=notes:18,odb:2 +notes-utils.c component=notes role=lib prefix=commit includes=setup:2,notes:1,odb:1,refs:1 cochange=notes:33,odb:15,refs:9,transport:9,revision:8 +notes-utils.h component=notes role=header prefix=notes includes=notes:1 cochange=notes:17,odb:6 +notes.c component=notes role=lib prefix=notes includes=odb:4,setup:2,notes:1,refs:1 cochange=notes:63,odb:58,revision:41,transport:36,index:24 +notes.h component=notes role=header prefix=notes cochange=notes:55,revision:20,setup:9,odb:3,refs:2 +object-file-convert.c component=odb role=lib prefix=object-file-convert includes=odb:5,setup:1 cochange=odb:8,setup:2,transport:1 +object-file-convert.h component=odb role=header prefix=object-file-convert includes=odb:1 cochange=odb:4 +object-file.c component=odb role=lib prefix=object-file includes=odb:6,index:2,pack:2,setup:2,convert:1 cochange=odb:183,pack:96,index:55,setup:30,transport:27 +object-file.h component=odb role=header prefix=object-file includes=odb:2 cochange=odb:113,pack:30,index:12,notes:5,transport:5 +object-name.c component=odb role=lib prefix=object-name includes=odb:8,setup:5,index:2,revision:2,pack:1 cochange=odb:46,pack:31,revision:23,setup:19,refs:18 +object-name.h component=odb role=header prefix=object-name includes=odb:1 cochange=odb:5,revision:3,refs:2,index:1 +object.c component=odb role=lib prefix=object includes=odb:8,index:1,pack:1 cochange=odb:265,pack:61,revision:55,transport:34,refs:17 +object.h component=odb role=header prefix=object includes=odb:1 cochange=odb:187,revision:54,transport:41,pack:29,refs:20 +odb.c component=odb role=lib prefix=odb includes=odb:7,pack:3,setup:3,index:1,submodule:1 cochange=odb:123,pack:64,setup:13,transport:12,index:8 +odb.h component=odb role=header prefix=odb includes=odb:3 cochange=odb:117,pack:71,transport:16,setup:13,index:10 +oid-array.c component=odb role=lib prefix=oid-array includes=odb:2 cochange=odb:13,pack:10,merge:2,diff:1,revision:1 +oid-array.h component=odb role=header prefix=oid-array includes=odb:1 cochange=odb:3,diff:1,index:1,refs:1,revision:1 +oidmap.c component=odb role=lib prefix=oidmap includes=odb:2 cochange=diff:11,revision:7,odb:6,refs:5,index:4 +oidmap.h component=odb role=header prefix=oidmap includes=odb:1 cochange=odb:6,revision:4,index:2,transport:2,convert:1 +oidset.c component=odb role=lib prefix=oidset includes=odb:1 cochange=odb:17,convert:2,diff:2,transport:2,index:1 +oidset.h component=odb role=header prefix=oidset cochange=odb:17,revision:1,transport:1 +oidtree.c component=odb role=lib prefix=oidtree includes=odb:2 cochange=odb:14,index:3,setup:2,diff:1,merge:1 +oidtree.h component=odb role=header prefix=oidtree includes=odb:2 cochange=odb:9 +pack-bitmap-write.c component=pack role=lib prefix=pack-bitmap-write includes=odb:7,pack:6,revision:2,setup:2,diff:1 cochange=pack:132,odb:32,revision:27,transport:10,diff:4 +pack-bitmap.c component=pack role=lib prefix=pack-bitmap includes=pack:7,odb:3,revision:3,setup:2,diff:1 cochange=pack:232,revision:30,odb:18,transport:14,refs:7 +pack-bitmap.h component=pack role=header prefix=pack-bitmap includes=pack:2,refs:1 cochange=pack:117,refs:5,odb:2,setup:2,revision:1 +pack-check.c component=pack role=lib prefix=pack-check includes=odb:2,pack:2,setup:2 cochange=pack:59,odb:26,transport:23,diff:11,index:10 +pack-mtimes.c component=pack role=lib prefix=pack-mtimes includes=pack:2,odb:1 cochange=pack:10,odb:3,transport:2,notes:1 +pack-mtimes.h component=pack role=header prefix=pack-mtimes cochange=pack:4,odb:2,setup:1,transport:1 +pack-objects.c component=pack role=lib prefix=pack-objects includes=pack:3,odb:1,setup:1 cochange=pack:66,diff:17,odb:16,transport:9,index:5 +pack-objects.h component=pack role=header prefix=pack-objects includes=pack:2,odb:1 cochange=pack:44,setup:5,odb:1 +pack-refs.c component=refs role=lib prefix=pack-refs includes=refs:2,setup:2,revision:1 cochange=refs:12,transport:8,index:2,merge:2,odb:2 +pack-refs.h component=refs role=header prefix=pack-refs cochange=refs:5 +pack-revindex.c component=pack role=lib prefix=pack-revindex includes=pack:3,odb:1,setup:1 cochange=pack:94,odb:7,index:6,transport:5,setup:4 +pack-revindex.h component=pack role=header prefix=pack-revindex cochange=pack:32,odb:1 +pack-write.c component=pack role=lib prefix=pack-write includes=pack:5,setup:2,odb:1,transport:1 cochange=pack:88,odb:21,transport:21,setup:14,index:10 +pack.h component=pack role=header prefix=pack-write includes=odb:1 cochange=pack:72,odb:13,transport:9,setup:5,revision:1 +packfile-list.c component=pack role=lib prefix=packfile includes=pack:2 cochange=pack:3 +packfile-list.h component=pack role=header prefix=packfile cochange=pack:3 +packfile.c component=pack role=lib prefix=packfile includes=odb:8,pack:7,setup:2,index:1,revision:1 cochange=pack:317,odb:134,transport:52,revision:36,index:27 +packfile.h component=pack role=header prefix=packfile includes=odb:3,pack:1,revision:1,setup:1 cochange=pack:234,odb:66,transport:32,revision:9,setup:7 +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 +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-delta.c component=pack role=lib prefix=patch-delta includes=pack:1 cochange=pack:23,diff:2,odb:2,transport: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 +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 +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 +progress.h component=? role=public prefix=progress cochange=index:5,diff:3 +promisor-remote.c component=transport role=lib prefix=promisor-remote includes=setup:3,transport:2,odb:1,pack:1 cochange=transport:32,setup:15,odb:6,pack:5,index:4 +promisor-remote.h component=transport role=header prefix=promisor-remote includes=setup:1 cochange=transport:18,setup:7,diff:4,index:3,revision:3 +prompt.c component=? role=lib prefix=prompt includes=setup:2 cochange=index:7,setup:6,pack:4,diff:3,transport:2 +prompt.h component=? role=public prefix=prompt cochange=transport:1 +protocol-caps.c component=transport role=lib prefix=protocol-caps includes=odb:3,transport:2,setup:1 cochange=transport:6,odb:3,refs:2,merge:1,setup:1 +protocol-caps.h component=transport role=header prefix=protocol-caps cochange=transport:6,refs:2 +protocol.c component=transport role=lib prefix=protocol includes=setup:2,transport:1 cochange=transport:21,index:4,setup:4,refs:2,diff:1 +protocol.h component=transport role=header prefix=protocol cochange=transport:5 +prune-packed.c component=pack role=lib prefix=environment includes=pack:2,odb:1,setup:1 cochange=pack:13,odb:7,setup:5,diff:3,revision:3 +prune-packed.h component=pack role=header prefix=? cochange=pack:1 +pseudo-merge.c component=pack role=lib prefix=pseudo-merge includes=odb:3,pack:2,refs:1,setup:1 cochange=pack:21,refs:3 +pseudo-merge.h component=pack role=header prefix=pseudo-merge cochange=pack:17 +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 +reachable.c component=pack role=lib prefix=reachable includes=pack:4,odb:3,refs:2,revision:2,diff:1 cochange=odb:60,pack:57,revision:47,transport:17,refs:14 +reachable.h component=pack role=header prefix=prune cochange=pack: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 +rebase.h component=? role=public prefix=pull +ref-filter.c component=refs role=lib prefix=ref-filter includes=odb:6,setup:5,refs:3,revision:2,index:1 cochange=refs:112,revision:59,odb:41,transport:40,index:30 +ref-filter.h component=refs role=header prefix=ref-filter includes=odb:2,revision:1 cochange=refs:62,revision:7,transport:6,diff:5,index:4 +reflog-walk.c component=refs role=lib prefix=reflog-walk includes=refs:2,diff:1,odb:1,revision:1,setup:1 cochange=refs:34,revision:26,index:13,diff:9,transport:8 +reflog-walk.h component=refs role=header prefix=reflog-walk cochange=revision:23,refs:19,odb:6,archive:2,index:2 +reflog.c component=refs role=lib prefix=refs includes=odb:3,refs:2,setup:2,revision:1 cochange=refs:18,transport:13,odb:9,revision:7,diff:4 +reflog.h component=refs role=header prefix=reflog includes=refs:1 cochange=refs:8,odb:3,index:1,revision:1,transport:1 +refs.c component=refs role=lib prefix=refs includes=setup:6,odb:5,refs:2,submodule:1 cochange=refs:373,transport:133,setup:116,odb:82,revision:77 +refs.h component=refs role=header prefix=refs includes=odb:2,setup:2 cochange=refs:352,transport:55,revision:34,setup:25,odb:16 +refspec.c component=refs role=lib prefix=refspec includes=refs:2,odb:1,transport:1 cochange=refs:27,transport:26,index:2,submodule:2 +refspec.h component=refs role=header prefix=refspec cochange=transport:31,refs:29,submodule:3,index:2 +remote-curl.c component=transport role=lib prefix=remote-curl includes=transport:9,setup:3,odb:1 cochange=transport:226,diff:9,revision:6,setup:5,archive:4 +remote.c component=transport role=lib prefix=remote includes=odb:3,setup:3,transport:3,refs:2,revision:2 cochange=transport:272,refs:91,revision:56,index:51,odb:30 +remote.h component=transport role=header prefix=remote includes=odb:1,refs:1 cochange=transport:245,refs:24,index:12,revision:6,setup:2 +repack-cruft.c component=pack role=lib prefix=repack includes=pack:2,setup:1 cochange=pack:8,transport:2,odb:1 +repack-filtered.c component=pack role=lib prefix=repack includes=pack:1,setup:1 cochange=pack:1 +repack-geometry.c component=pack role=lib prefix=repack includes=pack:3,setup:1 cochange=pack:25,transport:2,odb:1 +repack-midx.c component=pack role=lib prefix=repack includes=odb:3,pack:3,refs:1 cochange=pack:23,refs:3,setup:2,merge:1,odb:1 +repack-promisor.c component=pack role=lib prefix=repack-promisor includes=pack:3,setup:1 cochange=pack:8,odb:3,revision:2 +repack.c component=pack role=lib prefix=repack includes=pack:3,index:1,odb:1,setup:1 cochange=pack:31,transport:2,odb:1 +repack.h component=pack role=header prefix=repack includes=revision:1 cochange=pack:28 +replace-object.c component=odb role=lib prefix=refs includes=odb:4,refs:1,setup:1 cochange=odb:8,setup:6,refs:5,pack:3,diff:2 +replace-object.h component=odb role=header prefix=replace-object includes=odb:2,setup:1 cochange=odb:11,setup:9,pack:4,revision:3,merge:1 +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 +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 +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 +scalar.c component=? role=lib prefix=scalar includes=index:3,setup:2,pack:1,refs:1 cochange=setup:9,transport:7,pack:4,index:3,merge:3 +send-pack.c component=transport role=lib prefix=send-pack includes=transport:6,odb:3,setup:2,revision:1 cochange=transport:177,odb:29,revision:17,refs:15,pack:8 +send-pack.h component=transport role=header prefix=send-pack cochange=transport:39 +sequencer.c component=? role=lib prefix=sequencer includes=odb:8,index:5,merge:4,setup:4,revision:3 cochange=revision:84,odb:83,index:77,refs:60,transport:55 +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 +server-info.c component=pack role=lib prefix=server-info includes=odb:5,pack:2,index:1,refs:1,setup:1 cochange=pack:40,transport:34,odb:33,setup:13,refs:10 +server-info.h component=pack role=header prefix=server-info cochange=pack:2 +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 +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 +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 +string-list.h component=? role=public prefix=string-list cochange=transport:19,index:6,notes:6,diff:5,refs:5 +strmap.c component=? role=lib prefix=strmap +strmap.h component=? role=public prefix=strmap +strvec.c component=? role=lib prefix=strvec +strvec.h component=? role=public prefix=strvec cochange=submodule:3,revision:2,index:1,transport:1 +sub-process.c component=? role=lib prefix=sub-process includes=transport:1 cochange=diff:19,convert:12,revision:11,index:8,refs:8 +sub-process.h component=? role=public prefix=sub-process cochange=convert:8,transport:6,refs:5,diff:4,odb:4 +submodule-config.c component=submodule role=lib prefix=submodule-config includes=odb:3,setup:3,submodule:2,index:1 cochange=submodule:60,setup:41,diff:36,revision:27,odb:22 +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 +tag.c component=odb role=lib prefix=tag includes=odb:7,setup:2,pack:1 cochange=odb:189,transport:36,pack:32,revision:29,refs:14 +tag.h component=odb role=header prefix=tag includes=odb:1 cochange=odb:60,transport:10,revision:8,refs:7,pack:6 +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 +thread-utils.c component=? role=lib prefix=thread-utils cochange=diff:1 +thread-utils.h component=? role=public prefix=thread-utils cochange=transport:1 +tmp-objdir.c component=odb role=lib prefix=tmp-objdir includes=odb:3,setup:2,index:1 cochange=pack:24,odb:23,setup:8,transport:5,revision:3 +tmp-objdir.h component=odb role=header prefix=tmp-objdir cochange=odb:8,revision:3,setup:1 +trace.c component=? role=lib prefix=trace includes=setup:2 cochange=setup:26,transport:13,index:11,odb:4,diff:2 +trace.h component=? role=public prefix=trace cochange=transport:6,index:5,odb:4,pack:3,revision:3 +trace2.c component=? role=lib prefix=trace2 includes=setup:2 cochange=setup:2 +trace2.h component=? role=public prefix=trace2 cochange=setup:2 +trailer.c component=? role=lib prefix=trailer includes=setup:2,odb:1,revision:1 cochange=transport:13,revision:12,odb:8,index:7,refs:6 +trailer.h component=? role=public prefix=trailer includes=revision:1 cochange=revision:7,refs:1 +transport-helper.c component=transport role=lib prefix=transport-helper includes=transport:4,odb:2,refs:2,setup:2,pack:1 cochange=transport:210,refs:23,revision:16,odb:14,index:12 +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 +tree-walk.c component=odb role=lib prefix=tree-walk includes=odb:4,index:3,setup:1 cochange=odb:70,index:61,diff:31,revision:24,pack:13 +tree-walk.h component=odb role=header prefix=tree-walk includes=odb:1 cochange=odb:64,diff:23,index:23,revision:21,notes:7 +tree.c component=odb role=lib prefix=tree includes=odb:6,setup:2 cochange=odb:212,revision:45,index:36,pack:25,transport:21 +tree.h component=odb role=header prefix=tree includes=odb:1 cochange=odb:75,revision:12,archive:8,index:6,pack:5 +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 +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 +url.h component=? role=public prefix=url cochange=transport:9,revision:4,submodule:1 +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 +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 +walker.h component=transport role=header prefix=walker includes=transport:1 cochange=transport:19 +wildmatch.c component=? role=lib prefix=hex cochange=index:4,refs:3,diff:1,odb:1,revision:1 +wildmatch.h component=? role=public prefix=? cochange=index:3,refs:2,diff:1,revision:1,setup:1 +worktree.c component=refs role=lib prefix=worktree includes=setup:4,index:2,refs:2 cochange=refs:73,setup:53,index:22,submodule:13,pack:11 +worktree.h component=refs role=header prefix=worktree includes=refs:1 cochange=refs:61,revision:10,pack:5,setup:5,odb:4 +wrapper.c component=? role=lib prefix=wrapper cochange=setup:21,index:16,pack:6,transport:5,convert:4 +wrapper.h component=? role=public prefix=wrapper cochange=index:2,revision:1,setup:1 +write-or-die.c component=? role=lib prefix=write-or-die cochange=pack:6,setup:6,index:4,transport:2,convert:1 +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 +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
Signature · 1 line
2.54.0
RFC PATCH 7/14 odb: gather the odb sources under odb/
In reply to Michael MontalboMove the 23 odb C sources and 26 headers into odb/ 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, the Documentation/Makefile argument, and the tutorial #include examples.
--- .gitorganize | 98 +++++++++---------- Documentation/Makefile | 4 +- Documentation/MyFirstContribution.adoc | 2 +- Documentation/MyFirstObjectWalk.adoc | 2 +- Makefile | 46 ++++----- add-interactive.c | 4 +- add-patch.c | 4 +- apply.c | 6 +- apply.h | 2 +- archive-tar.c | 2 +- archive-zip.c | 2 +- archive.c | 10 +- attr.c | 6 +- bisect.c | 10 +- blame.c | 10 +- blame.h | 2 +- bloom.c | 8 +- branch.c | 4 +- builtin/add.c | 4 +- builtin/am.c | 4 +- builtin/apply.c | 2 +- builtin/backfill.c | 14 +-- builtin/bisect.c | 4 +- builtin/blame.c | 8 +- builtin/branch.c | 4 +- builtin/cat-file.c | 10 +- builtin/check-attr.c | 2 +- builtin/checkout.c | 12 +-- builtin/clone.c | 8 +- builtin/commit-graph.c | 8 +- builtin/commit-tree.c | 6 +- builtin/commit.c | 4 +- builtin/count-objects.c | 2 +- builtin/describe.c | 12 +-- builtin/diff-files.c | 2 +- builtin/diff-index.c | 2 +- builtin/diff-pairs.c | 4 +- builtin/diff-tree.c | 6 +- builtin/diff.c | 8 +- builtin/difftool.c | 4 +- builtin/fast-export.c | 12 +-- builtin/fast-import.c | 14 +-- builtin/fetch-pack.c | 4 +- builtin/fetch.c | 10 +- builtin/for-each-ref.c | 4 +- builtin/fsck.c | 18 ++-- builtin/gc.c | 6 +- builtin/get-tar-commit-id.c | 2 +- builtin/grep.c | 12 +-- builtin/hash-object.c | 6 +- builtin/history.c | 8 +- builtin/index-pack.c | 22 ++--- builtin/last-modified.c | 8 +- builtin/log.c | 18 ++-- builtin/ls-files.c | 4 +- builtin/ls-tree.c | 6 +- builtin/merge-base.c | 4 +- builtin/merge-file.c | 6 +- builtin/merge-recursive.c | 4 +- builtin/merge-tree.c | 12 +-- builtin/merge.c | 6 +- builtin/mktag.c | 8 +- builtin/mktree.c | 6 +- builtin/multi-pack-index.c | 4 +- builtin/mv.c | 2 +- builtin/name-rev.c | 10 +- builtin/notes.c | 6 +- builtin/pack-objects.c | 22 ++--- builtin/pack-redundant.c | 2 +- builtin/patch-id.c | 2 +- builtin/prune.c | 10 +- builtin/pull.c | 4 +- builtin/range-diff.c | 2 +- builtin/read-tree.c | 8 +- builtin/rebase.c | 6 +- builtin/receive-pack.c | 16 +-- builtin/reflog.c | 2 +- builtin/refs.c | 2 +- builtin/remote.c | 2 +- builtin/replace.c | 10 +- builtin/replay.c | 2 +- builtin/repo.c | 10 +- builtin/reset.c | 8 +- builtin/rev-list.c | 14 +-- builtin/rev-parse.c | 8 +- builtin/rm.c | 6 +- builtin/send-pack.c | 2 +- builtin/shortlog.c | 2 +- builtin/show-branch.c | 6 +- builtin/show-index.c | 2 +- builtin/show-ref.c | 6 +- builtin/sparse-checkout.c | 4 +- builtin/stash.c | 8 +- builtin/submodule--helper.c | 6 +- builtin/tag.c | 12 +-- builtin/unpack-file.c | 6 +- builtin/unpack-objects.c | 12 +-- builtin/update-index.c | 8 +- builtin/update-ref.c | 4 +- builtin/upload-pack.c | 4 +- builtin/verify-commit.c | 4 +- builtin/verify-tag.c | 4 +- builtin/worktree.c | 4 +- builtin/write-tree.c | 2 +- bundle-uri.c | 2 +- bundle.c | 6 +- cache-tree.c | 10 +- cache-tree.h | 4 +- checkout.c | 2 +- checkout.h | 2 +- chunk-format.c | 2 +- chunk-format.h | 2 +- combine-diff.c | 10 +- commit-graph.c | 18 ++-- commit-graph.h | 4 +- commit-reach.c | 4 +- commit-reach.h | 4 +- common-init.c | 4 +- compat/mingw.c | 2 +- compat/sha1-chunked.c | 2 +- config.c | 4 +- connect.c | 2 +- connected.c | 2 +- convert.c | 2 +- convert.h | 2 +- csum-file.c | 2 +- csum-file.h | 2 +- decorate.c | 2 +- delta-islands.c | 12 +-- diagnose.c | 2 +- diff-lib.c | 6 +- diff-no-index.c | 2 +- diff.c | 10 +- diff.h | 2 +- diffcore-break.c | 4 +- diffcore-pickaxe.c | 2 +- diffcore-rename.c | 4 +- diffcore.h | 2 +- dir.c | 4 +- dir.h | 2 +- entry.c | 2 +- environment.c | 4 +- fetch-object-info.c | 4 +- fetch-pack.c | 14 +-- fetch-pack.h | 2 +- fmt-merge-msg.c | 6 +- fsmonitor.h | 2 +- git.c | 4 +- gpg-interface.c | 2 +- graph.c | 2 +- grep.c | 2 +- help.c | 2 +- hex.c | 2 +- hex.h | 2 +- http-backend.c | 6 +- http-push.c | 14 +-- http-walker.c | 4 +- http.c | 4 +- khash.h | 2 +- line-log.c | 8 +- list-objects-filter-options.h | 2 +- list-objects-filter.c | 10 +- list-objects.c | 12 +-- log-tree.c | 16 +-- ls-refs.c | 2 +- mailmap.c | 4 +- merge-blobs.c | 4 +- merge-ort-wrappers.c | 8 +- merge-ort.c | 16 +-- merge-ort.h | 2 +- merge.c | 8 +- meson.build | 46 ++++----- midx-write.c | 4 +- midx.c | 2 +- name-hash.c | 2 +- negotiator/default.c | 4 +- negotiator/skipping.c | 4 +- notes-cache.c | 6 +- notes-merge.c | 8 +- notes-utils.c | 2 +- notes.c | 8 +- alloc.c => odb/alloc.c | 12 +-- alloc.h => odb/alloc.h | 0 blob.c => odb/blob.c | 4 +- blob.h => odb/blob.h | 2 +- cbtree.c => odb/cbtree.c | 2 +- cbtree.h => odb/cbtree.h | 0 commit-slab-decl.h => odb/commit-slab-decl.h | 0 commit-slab-impl.h => odb/commit-slab-impl.h | 0 commit-slab.h => odb/commit-slab.h | 4 +- commit.c => odb/commit.c | 20 ++-- commit.h => odb/commit.h | 2 +- fsck.c => odb/fsck.c | 18 ++-- fsck.h => odb/fsck.h | 4 +- hash-lookup.c => odb/hash-lookup.c | 4 +- hash-lookup.h => odb/hash-lookup.h | 0 hash.c => odb/hash.c | 2 +- hash.h => odb/hash.h | 0 loose.c => odb/loose.c | 10 +- loose.h => odb/loose.h | 0 match-trees.c => odb/match-trees.c | 10 +- match-trees.h => odb/match-trees.h | 0 .../object-file-convert.c | 10 +- .../object-file-convert.h | 2 +- object-file.c => odb/object-file.c | 12 +-- object-file.h => odb/object-file.h | 4 +- object-name.c => odb/object-name.c | 16 +-- object-name.h => odb/object-name.h | 2 +- object.c => odb/object.c | 16 +-- object.h => odb/object.h | 2 +- odb.c => odb/odb.c | 14 +-- odb.h => odb/odb.h | 6 +- oid-array.c => odb/oid-array.c | 4 +- oid-array.h => odb/oid-array.h | 2 +- oidmap.c => odb/oidmap.c | 4 +- oidmap.h => odb/oidmap.h | 2 +- oidset.c => odb/oidset.c | 2 +- oidset.h => odb/oidset.h | 0 oidtree.c => odb/oidtree.c | 4 +- oidtree.h => odb/oidtree.h | 4 +- replace-object.c => odb/replace-object.c | 8 +- replace-object.h => odb/replace-object.h | 4 +- odb/source-files.c | 8 +- odb/source-inmemory.c | 6 +- odb/source-loose.c | 10 +- odb/source.c | 2 +- odb/source.h | 4 +- odb/streaming.c | 4 +- odb/streaming.h | 4 +- tag.c => odb/tag.c | 14 +-- tag.h => odb/tag.h | 2 +- tmp-objdir.c => odb/tmp-objdir.c | 6 +- tmp-objdir.h => odb/tmp-objdir.h | 0 odb/transaction.h | 2 +- tree-walk.c => odb/tree-walk.c | 8 +- tree-walk.h => odb/tree-walk.h | 2 +- tree.c => odb/tree.c | 12 +-- tree.h => odb/tree.h | 2 +- oss-fuzz/fuzz-pack-idx.c | 2 +- pack-bitmap-write.c | 14 +-- pack-bitmap.c | 6 +- pack-check.c | 4 +- pack-mtimes.c | 2 +- pack-objects.c | 2 +- pack-objects.h | 2 +- pack-revindex.c | 2 +- pack-write.c | 2 +- pack.h | 2 +- packfile.c | 16 +-- packfile.h | 6 +- parallel-checkout.c | 2 +- parse-options-cb.c | 6 +- patch-ids.c | 4 +- path-walk.c | 18 ++-- path-walk.h | 2 +- path.c | 2 +- pretty.c | 6 +- promisor-remote.c | 2 +- protocol-caps.c | 6 +- prune-packed.c | 2 +- pseudo-merge.c | 6 +- range-diff.c | 4 +- reachable.c | 6 +- read-cache-ll.h | 2 +- read-cache.c | 12 +-- read-cache.h | 2 +- rebase-interactive.c | 6 +- ref-filter.c | 12 +-- ref-filter.h | 4 +- reflog-walk.c | 2 +- reflog.c | 6 +- refs.c | 10 +- refs.h | 4 +- refs/files-backend.c | 4 +- refs/packed-backend.c | 4 +- refs/ref-cache.c | 2 +- refs/ref-cache.h | 2 +- refs/reftable-backend.c | 4 +- refspec.c | 2 +- remote-curl.c | 2 +- remote.c | 6 +- remote.h | 2 +- repack-midx.c | 6 +- repack.c | 2 +- replay.c | 4 +- replay.h | 2 +- repository.c | 6 +- rerere.c | 4 +- reset.c | 6 +- reset.h | 2 +- resolve-undo.c | 2 +- resolve-undo.h | 2 +- revision.c | 18 ++-- revision.h | 8 +- send-pack.c | 6 +- sequencer.c | 16 +-- serve.c | 2 +- server-info.c | 10 +- setup.c | 4 +- shallow.c | 10 +- shallow.h | 4 +- sparse-index.c | 2 +- split-index.c | 2 +- split-index.h | 2 +- submodule-config.c | 6 +- submodule-config.h | 2 +- submodule.c | 10 +- t/helper/test-bitmap.c | 2 +- t/helper/test-bloom.c | 2 +- t/helper/test-cache-tree.c | 2 +- t/helper/test-dump-cache-tree.c | 4 +- t/helper/test-find-pack.c | 4 +- t/helper/test-hash-speed.c | 2 +- t/helper/test-match-trees.c | 6 +- t/helper/test-pack-deltas.c | 2 +- t/helper/test-pack-mtimes.c | 2 +- t/helper/test-partial-clone.c | 2 +- t/helper/test-path-walk.c | 6 +- t/helper/test-reach.c | 6 +- t/helper/test-read-graph.c | 2 +- t/helper/test-read-midx.c | 2 +- t/helper/test-ref-store.c | 2 +- t/helper/test-reftable.c | 2 +- t/helper/test-repository.c | 6 +- t/helper/test-revision-walking.c | 4 +- t/helper/test-scrap-cache-tree.c | 2 +- t/helper/test-sha1.c | 2 +- t/helper/test-sha256.c | 2 +- t/helper/test-submodule-config.c | 4 +- t/helper/test-synthesize.c | 6 +- t/unit-tests/lib-oid.h | 2 +- t/unit-tests/u-example-decorate.c | 2 +- t/unit-tests/u-odb-inmemory.c | 4 +- t/unit-tests/u-oid-array.c | 2 +- t/unit-tests/u-oidmap.c | 4 +- t/unit-tests/u-oidtree.c | 4 +- trailer.c | 2 +- transport-helper.c | 4 +- transport.c | 4 +- tree-diff.c | 6 +- unpack-trees.c | 6 +- unpack-trees.h | 2 +- upload-pack.c | 8 +- walker.c | 12 +-- wt-status.c | 10 +- xdiff-interface.c | 2 +- xdiff-interface.h | 2 +- 347 files changed, 1006 insertions(+), 1006 deletions(-) rename alloc.c => odb/alloc.c (95%) rename alloc.h => odb/alloc.h (100%) rename blob.c => odb/blob.c (89%) rename blob.h => odb/blob.h (96%) rename cbtree.c => odb/cbtree.c (99%) rename cbtree.h => odb/cbtree.h (100%) rename commit-slab-decl.h => odb/commit-slab-decl.h (100%) rename commit-slab-impl.h => odb/commit-slab-impl.h (100%) rename commit-slab.h => odb/commit-slab.h (97%) rename commit.c => odb/commit.c (99%) rename commit.h => odb/commit.h (99%) rename fsck.c => odb/fsck.c (99%) rename fsck.h => odb/fsck.h (99%) rename hash-lookup.c => odb/hash-lookup.c (98%) rename hash-lookup.h => odb/hash-lookup.h (100%) rename hash.c => odb/hash.c (99%) rename hash.h => odb/hash.h (100%) rename loose.c => odb/loose.c (98%) rename loose.h => odb/loose.h (100%) rename match-trees.c => odb/match-trees.c (98%) rename match-trees.h => odb/match-trees.h (100%) rename object-file-convert.c => odb/object-file-convert.c (98%) rename object-file-convert.h => odb/object-file-convert.h (96%) rename object-file.c => odb/object-file.c (99%) rename object-file.h => odb/object-file.h (99%) rename object-name.c => odb/object-name.c (99%) rename object-name.h => odb/object-name.h (99%) rename object.c => odb/object.c (98%) rename object.h => odb/object.h (99%) rename odb.c => odb/odb.c (99%) rename odb.h => odb/odb.h (99%) rename oid-array.c => odb/oid-array.c (97%) rename oid-array.h => odb/oid-array.h (99%) rename oidmap.c => odb/oidmap.c (97%) rename oidmap.h => odb/oidmap.h (99%) rename oidset.c => odb/oidset.c (99%) rename oidset.h => odb/oidset.h (100%) rename oidtree.c => odb/oidtree.c (98%) rename oidtree.h => odb/oidtree.h (97%) rename replace-object.c => odb/replace-object.c (96%) rename replace-object.h => odb/replace-object.h (97%) rename tag.c => odb/tag.c (97%) rename tag.h => odb/tag.h (96%) rename tmp-objdir.c => odb/tmp-objdir.c (99%) rename tmp-objdir.h => odb/tmp-objdir.h (100%) rename tree-walk.c => odb/tree-walk.c (99%) rename tree-walk.h => odb/tree-walk.h (99%) rename tree.c => odb/tree.c (97%) rename tree.h => odb/tree.h (98%)
.gitorganize +49 -49
@@ -30,8 +30,6 @@ advice.c component=? role=lib prefix=advice includes=setup:2 cochange=transport: 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 -alloc.c component=odb role=lib prefix=alloc includes=odb:6,setup:1 cochange=odb:54,revision:8,diff:6,pack:6,index:3 -alloc.h component=odb role=header prefix=alloc cochange=odb:16,refs: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
@@ -47,8 +45,6 @@ bisect.c component=revision role=lib prefix=bisect includes=odb:5,revision:5,set 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 -blob.c component=odb role=lib prefix=object includes=odb:2 cochange=odb:131,transport:12,pack:11,revision:10,refs:5 -blob.h component=odb role=header prefix=blob includes=odb:1 cochange=odb:33,revision:4,pack:3,transport:2 bloom.c component=pack role=lib prefix=bloom includes=odb:4,diff:2,pack:2,setup:2 cochange=pack:38,revision:25,diff:15,odb:6,index:2 bloom.h component=pack role=header prefix=bloom cochange=pack:28,revision:12,odb: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
@@ -60,8 +56,6 @@ bundle.c component=transport role=lib prefix=bundle includes=odb:3,revision:3,se 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 -cbtree.c component=odb role=lib prefix=cbtree includes=odb:1 cochange=odb:9,diff:1,merge:1,pack:1 -cbtree.h component=odb role=header prefix=cbtree cochange=odb:12,pack:3,setup:1,transport: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
@@ -77,11 +71,6 @@ commit-graph.c component=pack role=lib prefix=commit-graph includes=odb:9,pack:4 commit-graph.h component=pack role=header prefix=commit-graph includes=odb:2 cochange=pack:92,odb:14,setup:9,revision:8,transport:5 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 -commit-slab-decl.h component=odb role=header prefix=commit-slab cochange=odb:6,revision:1 -commit-slab-impl.h component=odb role=header prefix=commit-slab cochange=odb:7,pack:3,revision:1,setup:1,transport:1 -commit-slab.h component=odb role=header prefix=commit-slab includes=odb:2 cochange=odb:8,revision:2,transport:2,index:1,merge:1 -commit.c component=odb role=lib prefix=commit includes=odb:10,setup:4,revision:3,diff:1,index:1 cochange=odb:403,revision:147,transport:87,pack:57,setup:45 -commit.h component=odb role=header prefix=commit includes=odb:1 cochange=odb:237,revision:205,transport:49,pack:25,notes:22 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
@@ -146,8 +135,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=? -fsck.c component=odb role=lib prefix=fsck includes=odb:9,setup:3,convert:1,index:1,pack:1 cochange=odb:113,revision:46,transport:43,pack:20,setup:15 -fsck.h component=odb role=header prefix=fsck includes=odb:2 cochange=odb:50,diff:5,revision:5,transport:5,refs:4 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
@@ -170,10 +157,6 @@ graph.c component=revision role=lib prefix=graph includes=revision:2,odb:1,setup 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 -hash-lookup.c component=odb role=lib prefix=hash includes=odb:2,index:1 cochange=pack:14,odb:12,diff:1,index:1,merge:1 -hash-lookup.h component=odb role=header prefix=hash-lookup cochange=odb:10,pack:8,diff:1,merge:1,revision:1 -hash.c component=odb role=lib prefix=hash includes=odb:1 cochange=odb:15,diff:2,setup:2,index:1,transport:1 -hash.h component=odb role=header prefix=hash includes=setup:1 cochange=odb:32,pack:11,index:9,diff:7,transport:4 hashmap.c component=? role=lib prefix=hashmap cochange=diff:33,revision:19,index:17,refs:13,submodule:13 hashmap.h component=? role=public prefix=hashmap cochange=diff:39,revision:23,index:18,submodule:14,refs:13 help.c component=? role=lib prefix=help includes=setup:4,index:1,odb:1,refs:1,transport:1 cochange=setup:19,transport:19,diff:9,index:8,odb:7
@@ -218,16 +201,12 @@ lockfile.c component=? role=lib prefix=lockfile includes=setup:1 cochange=refs:1 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 -loose.c component=odb role=lib prefix=loose includes=odb:5,setup:1 cochange=odb:31,pack:18,setup:7,transport:6,refs:2 -loose.h component=odb role=header prefix=loose cochange=odb:8,setup:3 ls-refs.c component=refs role=lib prefix=ls-refs includes=setup:3,refs:2,odb:1,transport:1 cochange=refs:26,transport:17,pack:10,revision:5,odb:4 ls-refs.h component=refs role=header prefix=ls-refs cochange=transport:11,refs:5,submodule:1 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 mailmap.h component=? role=public prefix=mailmap cochange=setup:8,revision:4,transport:2,diff:1,index:1 -match-trees.c component=odb role=lib prefix=match-trees includes=odb:5,setup:1 cochange=odb:33,index:15,notes:15,revision:12,pack:10 -match-trees.h component=odb role=header prefix=match-trees cochange=merge:1,odb:1 mem-pool.c component=? role=lib prefix=mem-pool cochange=index:6 mem-pool.h component=? role=public prefix=mem-pool cochange=index:4 merge-blobs.c component=merge role=lib prefix=object-store includes=merge:2,odb:2 cochange=merge:9,notes:3,diff:2,convert:1,odb:1
@@ -254,24 +233,55 @@ notes-utils.c component=notes role=lib prefix=commit includes=setup:2,notes:1,od notes-utils.h component=notes role=header prefix=notes includes=notes:1 cochange=notes:17,odb:6 notes.c component=notes role=lib prefix=notes includes=odb:4,setup:2,notes:1,refs:1 cochange=notes:63,odb:58,revision:41,transport:36,index:24 notes.h component=notes role=header prefix=notes cochange=notes:55,revision:20,setup:9,odb:3,refs:2 -object-file-convert.c component=odb role=lib prefix=object-file-convert includes=odb:5,setup:1 cochange=odb:8,setup:2,transport:1 -object-file-convert.h component=odb role=header prefix=object-file-convert includes=odb:1 cochange=odb:4 -object-file.c component=odb role=lib prefix=object-file includes=odb:6,index:2,pack:2,setup:2,convert:1 cochange=odb:183,pack:96,index:55,setup:30,transport:27 -object-file.h component=odb role=header prefix=object-file includes=odb:2 cochange=odb:113,pack:30,index:12,notes:5,transport:5 -object-name.c component=odb role=lib prefix=object-name includes=odb:8,setup:5,index:2,revision:2,pack:1 cochange=odb:46,pack:31,revision:23,setup:19,refs:18 -object-name.h component=odb role=header prefix=object-name includes=odb:1 cochange=odb:5,revision:3,refs:2,index:1 -object.c component=odb role=lib prefix=object includes=odb:8,index:1,pack:1 cochange=odb:265,pack:61,revision:55,transport:34,refs:17 -object.h component=odb role=header prefix=object includes=odb:1 cochange=odb:187,revision:54,transport:41,pack:29,refs:20 -odb.c component=odb role=lib prefix=odb includes=odb:7,pack:3,setup:3,index:1,submodule:1 cochange=odb:123,pack:64,setup:13,transport:12,index:8 -odb.h component=odb role=header prefix=odb includes=odb:3 cochange=odb:117,pack:71,transport:16,setup:13,index:10 -oid-array.c component=odb role=lib prefix=oid-array includes=odb:2 cochange=odb:13,pack:10,merge:2,diff:1,revision:1 -oid-array.h component=odb role=header prefix=oid-array includes=odb:1 cochange=odb:3,diff:1,index:1,refs:1,revision:1 -oidmap.c component=odb role=lib prefix=oidmap includes=odb:2 cochange=diff:11,revision:7,odb:6,refs:5,index:4 -oidmap.h component=odb role=header prefix=oidmap includes=odb:1 cochange=odb:6,revision:4,index:2,transport:2,convert:1 -oidset.c component=odb role=lib prefix=oidset includes=odb:1 cochange=odb:17,convert:2,diff:2,transport:2,index:1 -oidset.h component=odb role=header prefix=oidset cochange=odb:17,revision:1,transport:1 -oidtree.c component=odb role=lib prefix=oidtree includes=odb:2 cochange=odb:14,index:3,setup:2,diff:1,merge:1 -oidtree.h component=odb role=header prefix=oidtree includes=odb:2 cochange=odb:9 +odb/alloc.c component=odb role=lib prefix=alloc includes=odb:6,setup:1 cochange=odb:54,revision:8,diff:6,pack:6,index:3 +odb/alloc.h component=odb role=header prefix=alloc cochange=odb:16,refs:1,revision:1 +odb/blob.c component=odb role=lib prefix=object includes=odb:2 cochange=odb:131,transport:12,pack:11,revision:10,refs:5 +odb/blob.h component=odb role=header prefix=blob includes=odb:1 cochange=odb:33,revision:4,pack:3,transport:2 +odb/cbtree.c component=odb role=lib prefix=cbtree includes=odb:1 cochange=odb:9,diff:1,merge:1,pack:1 +odb/cbtree.h component=odb role=header prefix=cbtree cochange=odb:12,pack:3,setup:1,transport:1 +odb/commit-slab-decl.h component=odb role=header prefix=commit-slab cochange=odb:6,revision:1 +odb/commit-slab-impl.h component=odb role=header prefix=commit-slab cochange=odb:7,pack:3,revision:1,setup:1,transport:1 +odb/commit-slab.h component=odb role=header prefix=commit-slab includes=odb:2 cochange=odb:8,revision:2,transport:2,index:1,merge:1 +odb/commit.c component=odb role=lib prefix=commit includes=odb:10,setup:4,revision:3,diff:1,index:1 cochange=odb:403,revision:147,transport:87,pack:57,setup:45 +odb/commit.h component=odb role=header prefix=commit includes=odb:1 cochange=odb:237,revision:205,transport:49,pack:25,notes:22 +odb/fsck.c component=odb role=lib prefix=fsck includes=odb:9,setup:3,convert:1,index:1,pack:1 cochange=odb:113,revision:46,transport:43,pack:20,setup:15 +odb/fsck.h component=odb role=header prefix=fsck includes=odb:2 cochange=odb:50,diff:5,revision:5,transport:5,refs:4 +odb/hash-lookup.c component=odb role=lib prefix=hash includes=odb:2,index:1 cochange=pack:14,odb:12,diff:1,index:1,merge:1 +odb/hash-lookup.h component=odb role=header prefix=hash-lookup cochange=odb:10,pack:8,diff:1,merge:1,revision:1 +odb/hash.c component=odb role=lib prefix=hash includes=odb:1 cochange=odb:15,diff:2,setup:2,index:1,transport:1 +odb/hash.h component=odb role=header prefix=hash includes=setup:1 cochange=odb:32,pack:11,index:9,diff:7,transport:4 +odb/loose.c component=odb role=lib prefix=loose includes=odb:5,setup:1 cochange=odb:31,pack:18,setup:7,transport:6,refs:2 +odb/loose.h component=odb role=header prefix=loose cochange=odb:8,setup:3 +odb/match-trees.c component=odb role=lib prefix=match-trees includes=odb:5,setup:1 cochange=odb:33,index:15,notes:15,revision:12,pack:10 +odb/match-trees.h component=odb role=header prefix=match-trees cochange=merge:1,odb:1 +odb/object-file-convert.c component=odb role=lib prefix=object-file-convert includes=odb:5,setup:1 cochange=odb:8,setup:2,transport:1 +odb/object-file-convert.h component=odb role=header prefix=object-file-convert includes=odb:1 cochange=odb:4 +odb/object-file.c component=odb role=lib prefix=object-file includes=odb:6,index:2,pack:2,setup:2,convert:1 cochange=odb:183,pack:96,index:55,setup:30,transport:27 +odb/object-file.h component=odb role=header prefix=object-file includes=odb:2 cochange=odb:113,pack:30,index:12,notes:5,transport:5 +odb/object-name.c component=odb role=lib prefix=object-name includes=odb:8,setup:5,index:2,revision:2,pack:1 cochange=odb:46,pack:31,revision:23,setup:19,refs:18 +odb/object-name.h component=odb role=header prefix=object-name includes=odb:1 cochange=odb:5,revision:3,refs:2,index:1 +odb/object.c component=odb role=lib prefix=object includes=odb:8,index:1,pack:1 cochange=odb:265,pack:61,revision:55,transport:34,refs:17 +odb/object.h component=odb role=header prefix=object includes=odb:1 cochange=odb:187,revision:54,transport:41,pack:29,refs:20 +odb/odb.c component=odb role=lib prefix=odb includes=odb:7,pack:3,setup:3,index:1,submodule:1 cochange=odb:123,pack:64,setup:13,transport:12,index:8 +odb/odb.h component=odb role=header prefix=odb includes=odb:3 cochange=odb:117,pack:71,transport:16,setup:13,index:10 +odb/oid-array.c component=odb role=lib prefix=oid-array includes=odb:2 cochange=odb:13,pack:10,merge:2,diff:1,revision:1 +odb/oid-array.h component=odb role=header prefix=oid-array includes=odb:1 cochange=odb:3,diff:1,index:1,refs:1,revision:1 +odb/oidmap.c component=odb role=lib prefix=oidmap includes=odb:2 cochange=diff:11,revision:7,odb:6,refs:5,index:4 +odb/oidmap.h component=odb role=header prefix=oidmap includes=odb:1 cochange=odb:6,revision:4,index:2,transport:2,convert:1 +odb/oidset.c component=odb role=lib prefix=oidset includes=odb:1 cochange=odb:17,convert:2,diff:2,transport:2,index:1 +odb/oidset.h component=odb role=header prefix=oidset cochange=odb:17,revision:1,transport:1 +odb/oidtree.c component=odb role=lib prefix=oidtree includes=odb:2 cochange=odb:14,index:3,setup:2,diff:1,merge:1 +odb/oidtree.h component=odb role=header prefix=oidtree includes=odb:2 cochange=odb:9 +odb/replace-object.c component=odb role=lib prefix=refs includes=odb:4,refs:1,setup:1 cochange=odb:8,setup:6,refs:5,pack:3,diff:2 +odb/replace-object.h component=odb role=header prefix=replace-object includes=odb:2,setup:1 cochange=odb:11,setup:9,pack:4,revision:3,merge:1 +odb/tag.c component=odb role=lib prefix=tag includes=odb:7,setup:2,pack:1 cochange=odb:189,transport:36,pack:32,revision:29,refs:14 +odb/tag.h component=odb role=header prefix=tag includes=odb:1 cochange=odb:60,transport:10,revision:8,refs:7,pack:6 +odb/tmp-objdir.c component=odb role=lib prefix=tmp-objdir includes=odb:3,setup:2,index:1 cochange=pack:24,odb:23,setup:8,transport:5,revision:3 +odb/tmp-objdir.h component=odb role=header prefix=tmp-objdir cochange=odb:8,revision:3,setup:1 +odb/tree-walk.c component=odb role=lib prefix=tree-walk includes=odb:4,index:3,setup:1 cochange=odb:70,index:61,diff:31,revision:24,pack:13 +odb/tree-walk.h component=odb role=header prefix=tree-walk includes=odb:1 cochange=odb:64,diff:23,index:23,revision:21,notes:7 +odb/tree.c component=odb role=lib prefix=tree includes=odb:6,setup:2 cochange=odb:212,revision:45,index:36,pack:25,transport:21 +odb/tree.h component=odb role=header prefix=tree includes=odb:1 cochange=odb:75,revision:12,archive:8,index:6,pack:5 pack-bitmap-write.c component=pack role=lib prefix=pack-bitmap-write includes=odb:7,pack:6,revision:2,setup:2,diff:1 cochange=pack:132,odb:32,revision:27,transport:10,diff:4 pack-bitmap.c component=pack role=lib prefix=pack-bitmap includes=pack:7,odb:3,revision:3,setup:2,diff:1 cochange=pack:232,revision:30,odb:18,transport:14,refs:7 pack-bitmap.h component=pack role=header prefix=pack-bitmap includes=pack:2,refs:1 cochange=pack:117,refs:5,odb:2,setup:2,revision:1
@@ -363,8 +373,6 @@ repack-midx.c component=pack role=lib prefix=repack includes=odb:3,pack:3,refs:1 repack-promisor.c component=pack role=lib prefix=repack-promisor includes=pack:3,setup:1 cochange=pack:8,odb:3,revision:2 repack.c component=pack role=lib prefix=repack includes=pack:3,index:1,odb:1,setup:1 cochange=pack:31,transport:2,odb:1 repack.h component=pack role=header prefix=repack includes=revision:1 cochange=pack:28 -replace-object.c component=odb role=lib prefix=refs includes=odb:4,refs:1,setup:1 cochange=odb:8,setup:6,refs:5,pack:3,diff:2 -replace-object.h component=odb role=header prefix=replace-object includes=odb:2,setup:1 cochange=odb:11,setup:9,pack:4,revision:3,merge:1 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
@@ -428,15 +436,11 @@ submodule.c component=submodule role=lib prefix=submodule includes=odb:5,setup:4 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 -tag.c component=odb role=lib prefix=tag includes=odb:7,setup:2,pack:1 cochange=odb:189,transport:36,pack:32,revision:29,refs:14 -tag.h component=odb role=header prefix=tag includes=odb:1 cochange=odb:60,transport:10,revision:8,refs:7,pack:6 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 thread-utils.c component=? role=lib prefix=thread-utils cochange=diff:1 thread-utils.h component=? role=public prefix=thread-utils cochange=transport:1 -tmp-objdir.c component=odb role=lib prefix=tmp-objdir includes=odb:3,setup:2,index:1 cochange=pack:24,odb:23,setup:8,transport:5,revision:3 -tmp-objdir.h component=odb role=header prefix=tmp-objdir cochange=odb:8,revision:3,setup:1 trace.c component=? role=lib prefix=trace includes=setup:2 cochange=setup:26,transport:13,index:11,odb:4,diff:2 trace.h component=? role=public prefix=trace cochange=transport:6,index:5,odb:4,pack:3,revision:3 trace2.c component=? role=lib prefix=trace2 includes=setup:2 cochange=setup:2
@@ -448,10 +452,6 @@ transport-internal.h component=transport role=header prefix=transport includes=t 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 -tree-walk.c component=odb role=lib prefix=tree-walk includes=odb:4,index:3,setup:1 cochange=odb:70,index:61,diff:31,revision:24,pack:13 -tree-walk.h component=odb role=header prefix=tree-walk includes=odb:1 cochange=odb:64,diff:23,index:23,revision:21,notes:7 -tree.c component=odb role=lib prefix=tree includes=odb:6,setup:2 cochange=odb:212,revision:45,index:36,pack:25,transport:21 -tree.h component=odb role=header prefix=tree includes=odb:1 cochange=odb:75,revision:12,archive:8,index:6,pack:5 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
Documentation/Makefile +2 -2
@@ -505,10 +505,10 @@ lint-docs-man-section-order: $(LINT_DOCS_MAN_SECTION_ORDER) .PHONY: lint-docs-fsck-msgids LINT_DOCS_FSCK_MSGIDS = .build/lint-docs/fsck-msgids.ok $(LINT_DOCS_FSCK_MSGIDS): lint-fsck-msgids.perl -$(LINT_DOCS_FSCK_MSGIDS): ../fsck.h fsck-msgids.adoc +$(LINT_DOCS_FSCK_MSGIDS): ../odb/fsck.h fsck-msgids.adoc $(call mkdir_p_parent_template) $(QUIET_GEN)$(PERL_PATH) lint-fsck-msgids.perl \ - ../fsck.h fsck-msgids.adoc $@ + ../odb/fsck.h fsck-msgids.adoc $@ lint-docs-fsck-msgids: $(LINT_DOCS_FSCK_MSGIDS) ## Lint: delimited sections
Documentation/MyFirstContribution.adoc +1 -1
@@ -428,7 +428,7 @@ require a full format object to be passed. Add the following includes: ---- -#include "commit.h" +#include "odb/commit.h" #include "pretty.h" #include "strbuf.h" ----
Documentation/MyFirstObjectWalk.adoc +1 -1
@@ -779,7 +779,7 @@ be processed in order to populate that list. First, add the `struct oidset` and related items we will use to iterate it: ---- -#include "oidset.h" +#include "odb/oidset.h" ...
Makefile +23 -23
122 lines not on this page · raw message
add-interactive.c +2 -2
@@ -5,7 +5,7 @@#include "color.h" #include "diffcore.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "preload-index.h" #include "read-cache-ll.h"
@@ -17,7 +17,7 @@#include "dir.h" #include "run-command.h" #include "prompt.h" -#include "tree.h" +#include "odb/tree.h" void init_add_i_state (struct add_i_state *s,struct repository *r,struct interactive_options *opts)
add-patch.c +2 -2
@@ -4,14 +4,14 @@#include "git-compat-util.h" #include "add-patch.h" #include "advice.h" -#include "commit.h" +#include "odb/commit.h" #include "config.h" #include "diff.h" #include "editor.h" #include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "pager.h" #include "read-cache-ll.h" #include "repository.h"
apply.c +3 -3
@@ -14,7 +14,7 @@#include "abspath.h" #include "base85.h" #include "config.h" -#include "odb.h" +#include "odb/odb.h" #include "delta.h" #include "diff.h" #include "dir.h"
@@ -25,8 +25,8 @@#include "merge-ll.h" #include "lockfile.h" #include "name-hash.h" -#include "object-name.h" -#include "object-file.h" +#include "odb/object-name.h" +#include "odb/object-file.h" #include "parse-options.h" #include "path.h" #include "quote.h"
apply.h +1 -1
@@ -1,7 +1,7 @@#ifndef APPLY_H #define APPLY_H -#include "hash.h" +#include "odb/hash.h" #include "lockfile.h" #include "string-list.h" #include "strmap.h"
archive-tar.c +1 -1
@@ -11,7 +11,7 @@#include "hex.h" #include "tar.h" #include "archive.h" -#include "odb.h" +#include "odb/odb.h" #include "odb/streaming.h" #include "strbuf.h" #include "run-command.h"
archive-zip.c +1 -1
@@ -11,7 +11,7 @@#include "git-zlib.h" #include "hex.h" #include "utf8.h" -#include "odb.h" +#include "odb/odb.h" #include "odb/streaming.h" #include "strbuf.h" #include "userdiff.h"
archive.c +5 -5
@@ -9,15 +9,15 @@#include "gettext.h" #include "git-zlib.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "path.h" #include "pretty.h" #include "setup.h" #include "refs.h" -#include "odb.h" -#include "commit.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/odb.h" +#include "odb/commit.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "attr.h" #include "archive.h" #include "parse-options.h"
attr.c +3 -3
@@ -22,11 +22,11 @@#include "read-cache-ll.h" #include "refs.h" #include "revision.h" -#include "odb.h" +#include "odb/odb.h" #include "setup.h" #include "thread-utils.h" -#include "tree-walk.h" -#include "object-name.h" +#include "odb/tree-walk.h" +#include "odb/object-name.h" char *git_attr_tree;
bisect.c +5 -5
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "config.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "environment.h" #include "gettext.h"
@@ -15,12 +15,12 @@#include "run-command.h" #include "log-tree.h" #include "bisect.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "strvec.h" -#include "commit-slab.h" +#include "odb/commit-slab.h" #include "commit-reach.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "path.h" #include "dir.h"
blame.c +5 -5
@@ -3,10 +3,10 @@#include "git-compat-util.h" #include "refs.h" -#include "odb.h" +#include "odb/odb.h" #include "cache-tree.h" #include "mergesort.h" -#include "commit.h" +#include "odb/commit.h" #include "convert.h" #include "diff.h" #include "diffcore.h"
@@ -16,11 +16,11 @@#include "read-cache.h" #include "revision.h" #include "setup.h" -#include "tag.h" +#include "odb/tag.h" #include "trace2.h" #include "blame.h" -#include "alloc.h" -#include "commit-slab.h" +#include "odb/alloc.h" +#include "odb/commit-slab.h" #include "bloom.h" #include "commit-graph.h"
blame.h +1 -1
@@ -1,7 +1,7 @@#ifndef BLAME_H #define BLAME_H -#include "oidset.h" +#include "odb/oidset.h" #include "xdiff-interface.h" #include "prio-queue.h"
bloom.c +4 -4
@@ -6,10 +6,10 @@#include "diffcore.h" #include "hashmap.h" #include "commit-graph.h" -#include "commit.h" -#include "commit-slab.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/commit.h" +#include "odb/commit-slab.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "config.h" #include "repository.h"
branch.c +2 -2
@@ -7,14 +7,14 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "path.h" #include "refs.h" #include "refspec.h" #include "remote.h" #include "repository.h" #include "sequencer.h" -#include "commit.h" +#include "odb/commit.h" #include "worktree.h" #include "submodule-config.h" #include "run-command.h"
builtin/add.c +2 -2
@@ -14,8 +14,8 @@#include "gettext.h" #include "pathspec.h" #include "run-command.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "odb/transaction.h" #include "parse-options.h" #include "path.h"
builtin/am.c +2 -2
@@ -23,11 +23,11 @@#include "lockfile.h" #include "cache-tree.h" #include "refs.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "unpack-trees.h" #include "branch.h" -#include "object-name.h" +#include "odb/object-name.h" #include "preload-index.h" #include "sequencer.h" #include "revision.h"
builtin/apply.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "apply.h" static const char *const apply_usage[] = {
builtin/backfill.c +7 -7
@@ -6,16 +6,16 @@#include "config.h" #include "parse-options.h" #include "repository.h" -#include "commit.h" +#include "odb/commit.h" #include "dir.h" #include "environment.h" #include "hex.h" -#include "tree.h" -#include "tree-walk.h" -#include "object.h" -#include "odb.h" -#include "oid-array.h" -#include "oidset.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" +#include "odb/object.h" +#include "odb/odb.h" +#include "odb/oid-array.h" +#include "odb/oidset.h" #include "promisor-remote.h" #include "strmap.h" #include "string-list.h"
builtin/bisect.c +2 -2
@@ -6,13 +6,13 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "bisect.h" #include "refs.h" #include "strvec.h" #include "run-command.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "path.h" #include "prompt.h" #include "quote.h"
builtin/blame.c +4 -4
@@ -13,7 +13,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "revision.h" #include "quote.h"
@@ -26,13 +26,13 @@#include "line-range.h" #include "line-log.h" #include "progress.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "pager.h" #include "blame.h" #include "refs.h" #include "setup.h" -#include "tag.h" +#include "odb/tag.h" #include "write-or-die.h" static const char blame_usage[] =N_ ("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>" );
builtin/branch.c +2 -2
@@ -13,9 +13,9 @@#include "editor.h" #include "environment.h" #include "refs.h" -#include "commit.h" +#include "odb/commit.h" #include "gettext.h" -#include "object-name.h" +#include "odb/object-name.h" #include "remote.h" #include "parse-options.h" #include "branch.h"
builtin/cat-file.c +5 -5
@@ -18,13 +18,13 @@#include "list-objects-filter-options.h" #include "parse-options.h" #include "userdiff.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "packfile.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "odb/streaming.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "promisor-remote.h" #include "mailmap.h" #include "write-or-die.h"
builtin/check-attr.c +1 -1
@@ -4,7 +4,7 @@#include "attr.h" #include "environment.h" #include "gettext.h" -#include "object-name.h" +#include "odb/object-name.h" #include "quote.h" #include "setup.h" #include "parse-options.h"
builtin/checkout.c +6 -6
@@ -6,7 +6,7 @@#include "branch.h" #include "cache-tree.h" #include "checkout.h" -#include "commit.h" +#include "odb/commit.h" #include "config.h" #include "diff.h" #include "dir.h"
@@ -17,9 +17,9 @@#include "merge-ll.h" #include "lockfile.h" #include "mem-pool.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "parse-options.h" #include "path.h" #include "preload-index.h"
@@ -36,8 +36,8 @@#include "submodule.h" #include "symlinks.h" #include "trace2.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "unpack-trees.h" #include "wt-status.h" #include "xdiff-interface.h"
builtin/clone.c +4 -4
@@ -24,10 +24,10 @@#include "parse-options.h" #include "refs.h" #include "refspec.h" -#include "object-file.h" -#include "odb.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/object-file.h" +#include "odb/odb.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "unpack-trees.h" #include "transport.h" #include "strbuf.h"
builtin/commit-graph.c +4 -4
@@ -1,17 +1,17 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "commit.h" +#include "odb/commit.h" #include "config.h" #include "environment.h" #include "gettext.h" #include "hex.h" #include "parse-options.h" #include "commit-graph.h" -#include "odb.h" +#include "odb/odb.h" #include "progress.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "strbuf.h" -#include "tag.h" +#include "odb/tag.h" #include "trace2.h" #define BUILTIN_COMMIT_GRAPH_VERIFY_USAGE \
builtin/commit-tree.c +3 -3
@@ -9,10 +9,10 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" -#include "commit.h" +#include "odb/commit.h" #include "parse-options.h" static const char *const commit_tree_usage[] = {
builtin/commit.c +2 -2
@@ -18,14 +18,14 @@#include "editor.h" #include "environment.h" #include "diff.h" -#include "commit.h" +#include "odb/commit.h" #include "add-interactive.h" #include "gettext.h" #include "revision.h" #include "wt-status.h" #include "run-command.h" #include "strbuf.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "path.h" #include "preload-index.h"
builtin/count-objects.c +1 -1
@@ -13,7 +13,7 @@#include "parse-options.h" #include "quote.h" #include "packfile.h" -#include "object-file.h" +#include "odb/object-file.h" static unsigned long garbage;static off_t size_garbage;
builtin/describe.c +6 -6
@@ -7,10 +7,10 @@#include "gettext.h" #include "hex.h" #include "lockfile.h" -#include "commit.h" -#include "tag.h" +#include "odb/commit.h" +#include "odb/tag.h" #include "refs.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "read-cache-ll.h" #include "revision.h"
@@ -19,12 +19,12 @@#include "setup.h" #include "strvec.h" #include "run-command.h" -#include "odb.h" +#include "odb/odb.h" #include "list-objects.h" -#include "commit-slab.h" +#include "odb/commit-slab.h" #include "wildmatch.h" #include "prio-queue.h" -#include "oidset.h" +#include "odb/oidset.h" #define MAX_TAGS (FLAG_BITS - 1)#define DEFAULT_CANDIDATES 10
builtin/diff-files.c +1 -1
@@ -11,7 +11,7 @@#include "config.h" #include "diff.h" #include "diff-merges.h" -#include "commit.h" +#include "odb/commit.h" #include "preload-index.h" #include "revision.h"
builtin/diff-index.c +1 -1
@@ -5,7 +5,7 @@#include "config.h" #include "diff.h" #include "diff-merges.h" -#include "commit.h" +#include "odb/commit.h" #include "preload-index.h" #include "revision.h" #include "setup.h"
builtin/diff-pairs.c +2 -2
@@ -3,9 +3,9 @@#include "diff.h" #include "diffcore.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" -#include "object.h" +#include "odb/object.h" #include "parse-options.h" #include "revision.h" #include "strbuf.h"
builtin/diff-tree.c +3 -3
@@ -3,14 +3,14 @@#include "builtin.h" #include "config.h" #include "diff.h" -#include "commit.h" +#include "odb/commit.h" #include "gettext.h" #include "hex.h" #include "log-tree.h" #include "read-cache-ll.h" #include "revision.h" -#include "tmp-objdir.h" -#include "tree.h" +#include "odb/tmp-objdir.h" +#include "odb/tree.h" static struct rev_info log_tree_opt;
builtin/diff.c +4 -4
@@ -12,9 +12,9 @@#include "ewah/ewok.h" #include "lockfile.h" #include "color.h" -#include "commit.h" +#include "odb/commit.h" #include "gettext.h" -#include "tag.h" +#include "odb/tag.h" #include "diff.h" #include "diff-merges.h" #include "diffcore.h"
@@ -23,8 +23,8 @@#include "revision.h" #include "log-tree.h" #include "setup.h" -#include "oid-array.h" -#include "tree.h" +#include "odb/oid-array.h" +#include "odb/tree.h" #define DIFF_NO_INDEX_EXPLICIT 1#define DIFF_NO_INDEX_IMPLICIT 2
builtin/difftool.c +2 -2
@@ -29,8 +29,8 @@#include "strvec.h" #include "strbuf.h" #include "lockfile.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "dir.h" #include "entry.h" #include "setup.h"
builtin/fast-export.c +6 -6
@@ -14,11 +14,11 @@#include "hex.h" #include "refs.h" #include "refspec.h" -#include "object-file.h" -#include "odb.h" -#include "commit.h" -#include "object.h" -#include "tag.h" +#include "odb/object-file.h" +#include "odb/odb.h" +#include "odb/commit.h" +#include "odb/object.h" +#include "odb/tag.h" #include "diff.h" #include "diffcore.h" #include "log-tree.h"
@@ -29,7 +29,7 @@#include "parse-options.h" #include "quote.h" #include "remote.h" -#include "blob.h" +#include "odb/blob.h" #include "gpg-interface.h" static const char *const fast_export_usage[] = {
builtin/fast-import.c +7 -7
@@ -8,10 +8,10 @@#include "hex.h" #include "config.h" #include "lockfile.h" -#include "object.h" -#include "blob.h" -#include "tree.h" -#include "commit.h" +#include "odb/object.h" +#include "odb/blob.h" +#include "odb/tree.h" +#include "odb/commit.h" #include "delta.h" #include "pack.h" #include "path.h"
@@ -22,9 +22,9 @@#include "dir.h" #include "run-command.h" #include "packfile.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "mem-pool.h" #include "commit-reach.h" #include "khash.h"
builtin/fetch-pack.c +2 -2
@@ -4,12 +4,12 @@#include "builtin.h" #include "gettext.h" #include "hex.h" -#include "object-file.h" +#include "odb/object-file.h" #include "pkt-line.h" #include "fetch-pack.h" #include "remote.h" #include "connect.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "protocol.h" static const char fetch_pack_usage[] =
builtin/fetch.c +5 -5
@@ -13,11 +13,11 @@#include "hex.h" #include "refs.h" #include "refspec.h" -#include "object-name.h" -#include "odb.h" -#include "oidset.h" -#include "oid-array.h" -#include "commit.h" +#include "odb/object-name.h" +#include "odb/odb.h" +#include "odb/oidset.h" +#include "odb/oid-array.h" +#include "odb/commit.h" #include "string-list.h" #include "remote.h" #include "transport.h"
builtin/for-each-ref.c +2 -2
@@ -1,10 +1,10 @@#include "builtin.h" -#include "commit.h" +#include "odb/commit.h" #include "config.h" #include "environment.h" #include "for-each-ref.h" #include "gettext.h" -#include "object.h" +#include "odb/object.h" #include "parse-options.h" #include "ref-filter.h" #include "strbuf.h"
builtin/fsck.c +9 -9
@@ -2,24 +2,24 @@#include "gettext.h" #include "hex.h" #include "config.h" -#include "commit.h" -#include "tree.h" -#include "blob.h" -#include "tag.h" +#include "odb/commit.h" +#include "odb/tree.h" +#include "odb/blob.h" +#include "odb/tag.h" #include "refs.h" #include "pack.h" #include "cache-tree.h" -#include "fsck.h" +#include "odb/fsck.h" #include "parse-options.h" #include "progress.h" #include "packfile.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "odb/streaming.h" #include "path.h" #include "read-cache-ll.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "resolve-undo.h" #include "run-command.h" #include "sparse-index.h"
builtin/gc.c +3 -3
@@ -26,11 +26,11 @@#include "run-command.h" #include "sigchain.h" #include "strvec.h" -#include "commit.h" +#include "odb/commit.h" #include "commit-graph.h" #include "packfile.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "path.h" #include "reflog.h" #include "rerere.h"
builtin/get-tar-commit-id.c +1 -1
@@ -2,7 +2,7 @@* Copyright (c) 2005, 2006 Rene Scharfe */ #include "builtin.h" -#include "commit.h" +#include "odb/commit.h" #include "tar.h" static const char builtin_get_tar_commit_id_usage[] =
builtin/grep.c +6 -6
@@ -13,8 +13,8 @@#include "gettext.h" #include "hex.h" #include "config.h" -#include "tag.h" -#include "tree-walk.h" +#include "odb/tag.h" +#include "odb/tree-walk.h" #include "parse-options.h" #include "string-list.h" #include "run-command.h"
@@ -25,11 +25,11 @@#include "setup.h" #include "submodule.h" #include "submodule-config.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "odb/source.h" -#include "oid-array.h" -#include "oidset.h" +#include "odb/oid-array.h" +#include "odb/oidset.h" #include "pager.h" #include "path.h" #include "promisor-remote.h"
builtin/hash-object.c +3 -3
@@ -11,9 +11,9 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-file.h" -#include "odb.h" -#include "blob.h" +#include "odb/object-file.h" +#include "odb/odb.h" +#include "odb/blob.h" #include "quote.h" #include "parse-options.h" #include "setup.h"
builtin/history.c +4 -4
@@ -2,7 +2,7 @@#include "builtin.h" #include "cache-tree.h" -#include "commit.h" +#include "odb/commit.h" #include "commit-reach.h" #include "config.h" #include "editor.h"
@@ -11,7 +11,7 @@#include "hex.h" #include "lockfile.h" #include "merge-ort.h" -#include "oidmap.h" +#include "odb/oidmap.h" #include "parse-options.h" #include "path.h" #include "read-cache.h"
@@ -21,8 +21,8 @@#include "revision.h" #include "sequencer.h" #include "strvec.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "unpack-trees.h" #include "wt-status.h"
builtin/index-pack.c +11 -11
@@ -9,24 +9,24 @@#include "hex.h" #include "pack.h" #include "csum-file.h" -#include "blob.h" -#include "commit.h" -#include "tag.h" -#include "tree.h" +#include "odb/blob.h" +#include "odb/commit.h" +#include "odb/tag.h" +#include "odb/tree.h" #include "progress.h" -#include "fsck.h" +#include "odb/fsck.h" #include "strbuf.h" #include "thread-utils.h" #include "packfile.h" #include "pack-revindex.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "odb/streaming.h" -#include "oid-array.h" -#include "oidset.h" +#include "odb/oid-array.h" +#include "odb/oidset.h" #include "path.h" -#include "replace-object.h" -#include "tree-walk.h" +#include "odb/replace-object.h" +#include "odb/tree-walk.h" #include "promisor-remote.h" #include "run-command.h" #include "setup.h"
builtin/last-modified.c +4 -4
@@ -2,8 +2,8 @@#include "bloom.h" #include "builtin.h" #include "commit-graph.h" -#include "commit-slab.h" -#include "commit.h" +#include "odb/commit-slab.h" +#include "odb/commit.h" #include "config.h" #include "diff.h" #include "diffcore.h"
@@ -11,8 +11,8 @@#include "ewah/ewok.h" #include "hashmap.h" #include "hex.h" -#include "object-name.h" -#include "object.h" +#include "odb/object-name.h" +#include "odb/object.h" #include "parse-options.h" #include "prio-queue.h" #include "quote.h"
builtin/log.c +9 -9
@@ -14,20 +14,20 @@#include "gettext.h" #include "hex.h" #include "refs.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "odb/streaming.h" #include "pager.h" #include "color.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "diffcore.h" #include "diff-merges.h" #include "revision.h" #include "log-tree.h" -#include "oid-array.h" -#include "oidset.h" -#include "tag.h" +#include "odb/oid-array.h" +#include "odb/oidset.h" +#include "odb/tag.h" #include "reflog-walk.h" #include "patch-ids.h" #include "path.h"
@@ -40,15 +40,15 @@#include "version.h" #include "mailmap.h" #include "progress.h" -#include "commit-slab.h" +#include "odb/commit-slab.h" #include "advice.h" #include "utf8.h" #include "commit-reach.h" #include "promisor-remote.h" #include "range-diff.h" -#include "tmp-objdir.h" -#include "tree.h" +#include "odb/tmp-objdir.h" +#include "odb/tree.h" #include "userdiff.h" #include "write-or-die.h"
builtin/ls-files.c +2 -2
@@ -15,7 +15,7 @@#include "quote.h" #include "dir.h" #include "gettext.h" -#include "object-name.h" +#include "odb/object-name.h" #include "strbuf.h" #include "parse-options.h" #include "resolve-undo.h"
@@ -26,7 +26,7 @@#include "setup.h" #include "sparse-index.h" #include "submodule.h" -#include "odb.h" +#include "odb/odb.h" #include "hex.h"
builtin/ls-tree.c +3 -3
@@ -10,9 +10,9 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-name.h" -#include "odb.h" -#include "tree.h" +#include "odb/object-name.h" +#include "odb/odb.h" +#include "odb/tree.h" #include "path.h" #include "quote.h" #include "parse-options.h"
builtin/merge-base.c +2 -2
@@ -1,11 +1,11 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "config.h" -#include "commit.h" +#include "odb/commit.h" #include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "commit-reach.h"
builtin/merge-file.c +3 -3
@@ -5,9 +5,9 @@#include "abspath.h" #include "diff.h" #include "hex.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "config.h" #include "gettext.h" #include "setup.h"
builtin/merge-recursive.c +2 -2
@@ -2,9 +2,9 @@#include "builtin.h" #include "advice.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "merge-ort-wrappers.h" -#include "object-name.h" +#include "odb/object-name.h" static const char builtin_merge_recursive_usage[] ="git %s <base>... -- <head> <remote> ..." ;
builtin/merge-tree.c +6 -6
@@ -2,21 +2,21 @@#include "builtin.h" #include "environment.h" -#include "tree-walk.h" +#include "odb/tree-walk.h" #include "xdiff-interface.h" #include "help.h" #include "gettext.h" #include "hex.h" -#include "commit.h" +#include "odb/commit.h" #include "commit-reach.h" #include "merge-ort.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "parse-options.h" -#include "blob.h" +#include "odb/blob.h" #include "merge-blobs.h" #include "quote.h" -#include "tree.h" +#include "odb/tree.h" #include "config.h" #include "strvec.h" #include "write-or-die.h"
builtin/merge.c +3 -3
@@ -18,7 +18,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "lockfile.h" #include "repository.h"
@@ -28,7 +28,7 @@#include "diff-merges.h" #include "refs.h" #include "refspec.h" -#include "commit.h" +#include "odb/commit.h" #include "diffcore.h" #include "path.h" #include "revision.h"
@@ -45,7 +45,7 @@#include "fmt-merge-msg.h" #include "sequencer.h" #include "string-list.h" -#include "tag.h" +#include "odb/tag.h" #include "alias.h" #include "branch.h" #include "commit-reach.h"
builtin/mktag.c +4 -4
@@ -4,10 +4,10 @@#include "hex.h" #include "parse-options.h" #include "strbuf.h" -#include "replace-object.h" -#include "object-file.h" -#include "odb.h" -#include "fsck.h" +#include "odb/replace-object.h" +#include "odb/object-file.h" +#include "odb/odb.h" +#include "odb/fsck.h" #include "config.h" static char const *const builtin_mktag_usage[] = {
builtin/mktree.c +3 -3
@@ -8,10 +8,10 @@#include "hex.h" #include "quote.h" #include "strbuf.h" -#include "tree.h" +#include "odb/tree.h" #include "parse-options.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" static struct treeent { unsigned mode;
builtin/multi-pack-index.c +2 -2
@@ -8,10 +8,10 @@#include "midx.h" #include "strbuf.h" #include "trace2.h" -#include "odb.h" +#include "odb/odb.h" #include "odb/source.h" #include "odb/source-files.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "repository.h" #define BUILTIN_MIDX_WRITE_USAGE \
builtin/mv.c +1 -1
@@ -14,7 +14,7 @@#include "environment.h" #include "gettext.h" #include "name-hash.h" -#include "object-file.h" +#include "odb/object-file.h" #include "path.h" #include "pathspec.h" #include "lockfile.h"
builtin/name-rev.c +5 -5
@@ -6,14 +6,14 @@#include "gettext.h" #include "hex.h" #include "config.h" -#include "commit.h" -#include "tag.h" +#include "odb/commit.h" +#include "odb/tag.h" #include "refs.h" -#include "object-name.h" +#include "odb/object-name.h" #include "pager.h" #include "parse-options.h" -#include "hash-lookup.h" -#include "commit-slab.h" +#include "odb/hash-lookup.h" +#include "odb/commit-slab.h" #include "commit-graph.h" #include "wildmatch.h" #include "mem-pool.h"
builtin/notes.c +3 -3
@@ -14,9 +14,9 @@#include "gettext.h" #include "hex.h" #include "notes.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "path.h" #include "pretty.h"
builtin/pack-objects.c +11 -11
@@ -7,14 +7,14 @@#include "hex.h" #include "config.h" #include "attr.h" -#include "object.h" -#include "commit.h" -#include "tag.h" +#include "odb/object.h" +#include "odb/commit.h" +#include "odb/tag.h" #include "delta.h" #include "pack.h" #include "pack-revindex.h" #include "csum-file.h" -#include "tree-walk.h" +#include "odb/tree-walk.h" #include "diff.h" #include "revision.h" #include "list-objects.h"
@@ -26,16 +26,16 @@#include "pack-bitmap.h" #include "delta-islands.h" #include "reachable.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "strvec.h" #include "strmap.h" #include "list.h" #include "packfile.h" -#include "object-file.h" -#include "object-file-convert.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-file-convert.h" +#include "odb/odb.h" #include "odb/streaming.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "dir.h" #include "midx.h" #include "trace2.h"
@@ -44,8 +44,8 @@#include "pack-mtimes.h" #include "parse-options.h" #include "pkt-line.h" -#include "blob.h" -#include "tree.h" +#include "odb/blob.h" +#include "odb/tree.h" #include "path-walk.h" /*
builtin/pack-redundant.c +1 -1
@@ -13,7 +13,7 @@#include "hex.h" #include "packfile.h" -#include "odb.h" +#include "odb/odb.h" #include "strbuf.h" #define BLKSIZE 512
builtin/patch-id.c +1 -1
@@ -5,7 +5,7 @@#include "diff.h" #include "environment.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "parse-options.h" #include "setup.h"
builtin/prune.c +5 -5
@@ -1,7 +1,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "builtin.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "dir.h" #include "environment.h"
@@ -13,10 +13,10 @@#include "path.h" #include "progress.h" #include "prune-packed.h" -#include "replace-object.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/replace-object.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "shallow.h" static const char *const prune_usage[] = {
builtin/pull.c +2 -2
@@ -15,10 +15,10 @@#include "gettext.h" #include "hex.h" #include "merge.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "run-command.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "remote.h" #include "dir.h" #include "path.h"
builtin/range-diff.c +1 -1
@@ -2,7 +2,7 @@#include "builtin.h" #include "gettext.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "range-diff.h" #include "config.h"
builtin/read-tree.c +4 -4
@@ -10,10 +10,10 @@#include "gettext.h" #include "hex.h" #include "lockfile.h" -#include "object.h" -#include "object-name.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/object.h" +#include "odb/object-name.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "cache-tree.h" #include "unpack-trees.h" #include "parse-options.h"
builtin/rebase.c +3 -3
@@ -20,11 +20,11 @@#include "config.h" #include "unpack-trees.h" #include "lockfile.h" -#include "object-file.h" -#include "object-name.h" +#include "odb/object-file.h" +#include "odb/object-name.h" #include "parse-options.h" #include "path.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "wt-status.h" #include "revision.h"
builtin/receive-pack.c +8 -8
@@ -3,25 +3,25 @@#include "builtin.h" #include "abspath.h" -#include "commit.h" +#include "odb/commit.h" #include "commit-reach.h" #include "config.h" #include "connect.h" #include "connected.h" #include "environment.h" #include "exec-cmd.h" -#include "fsck.h" +#include "odb/fsck.h" #include "gettext.h" #include "gpg-interface.h" #include "hex.h" #include "hook.h" #include "lockfile.h" -#include "object.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" -#include "oid-array.h" -#include "oidset.h" +#include "odb/object.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" +#include "odb/oid-array.h" +#include "odb/oidset.h" #include "pack.h" #include "packfile.h" #include "parse-options.h"
builtin/reflog.c +1 -1
@@ -4,7 +4,7 @@#include "config.h" #include "gettext.h" #include "hex.h" -#include "odb.h" +#include "odb/odb.h" #include "revision.h" #include "reachable.h" #include "wildmatch.h"
builtin/refs.c +1 -1
@@ -1,6 +1,6 @@#include "builtin.h" #include "config.h" -#include "fsck.h" +#include "odb/fsck.h" #include "pack-refs.h" #include "parse-options.h" #include "refs.h"
builtin/remote.c +1 -1
@@ -16,7 +16,7 @@#include "rebase.h" #include "refs.h" #include "refspec.h" -#include "odb.h" +#include "odb/odb.h" #include "strvec.h" #include "commit-reach.h" #include "progress.h"
builtin/replace.c +5 -5
@@ -18,11 +18,11 @@#include "parse-options.h" #include "path.h" #include "run-command.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" -#include "replace-object.h" -#include "tag.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" +#include "odb/replace-object.h" +#include "odb/tag.h" #include "wildmatch.h" static const char *const git_replace_usage[] = {
builtin/replay.c +1 -1
@@ -7,7 +7,7 @@#include "builtin.h" #include "config.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "refs.h" #include "replay.h"
builtin/repo.c +5 -5
@@ -1,11 +1,11 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "commit.h" +#include "odb/commit.h" #include "environment.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" -#include "odb.h" +#include "odb/odb.h" #include "parse-options.h" #include "path.h" #include "path-walk.h"
@@ -18,8 +18,8 @@#include "strbuf.h" #include "string-list.h" #include "shallow.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "utf8.h" #define REPO_INFO_USAGE \
builtin/reset.c +4 -4
@@ -15,17 +15,17 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "lockfile.h" -#include "object.h" +#include "odb/object.h" #include "pretty.h" #include "refs.h" #include "diff.h" #include "diffcore.h" -#include "tree.h" +#include "odb/tree.h" #include "branch.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "path.h" #include "repository.h"
builtin/rev-list.c +7 -7
@@ -3,7 +3,7 @@#include "builtin.h" #include "config.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "environment.h" #include "gettext.h"
@@ -11,10 +11,10 @@#include "revision.h" #include "list-objects.h" #include "list-objects-filter-options.h" -#include "object.h" -#include "object-name.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object.h" +#include "odb/object-name.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "pack-bitmap.h" #include "parse-options.h" #include "log-tree.h"
@@ -22,8 +22,8 @@#include "bisect.h" #include "progress.h" #include "reflog-walk.h" -#include "oidset.h" -#include "oidmap.h" +#include "odb/oidset.h" +#include "odb/oidmap.h" #include "packfile.h" #include "commit-reach.h" #include "quote.h"
builtin/rev-parse.c +4 -4
@@ -12,14 +12,14 @@#include "abspath.h" #include "bisect.h" #include "config.h" -#include "commit.h" +#include "odb/commit.h" #include "environment.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "refs.h" #include "quote.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "path.h" #include "diff.h"
@@ -32,7 +32,7 @@#include "submodule.h" #include "commit-reach.h" #include "shallow.h" -#include "object-file-convert.h" +#include "odb/object-file-convert.h" #define DO_REVS 1#define DO_NOREV 2
builtin/rm.c +3 -3
@@ -13,9 +13,9 @@#include "lockfile.h" #include "dir.h" #include "gettext.h" -#include "hash.h" -#include "tree-walk.h" -#include "object-name.h" +#include "odb/hash.h" +#include "odb/tree-walk.h" +#include "odb/object-name.h" #include "parse-options.h" #include "read-cache.h"
builtin/send-pack.c +1 -1
@@ -9,7 +9,7 @@#include "send-pack.h" #include "quote.h" #include "transport.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "gettext.h" #include "protocol.h" #include "parse-options.h"
builtin/shortlog.c +1 -1
@@ -2,7 +2,7 @@#include "builtin.h" #include "config.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "environment.h" #include "gettext.h"
builtin/show-branch.c +3 -3
@@ -5,17 +5,17 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "pretty.h" #include "refs.h" #include "color.h" #include "strvec.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "dir.h" -#include "commit-slab.h" +#include "odb/commit-slab.h" #include "date.h" #include "wildmatch.h" #include "prio-queue.h"
builtin/show-index.c +1 -1
@@ -3,7 +3,7 @@#include "builtin.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "pack.h" #include "parse-options.h"
builtin/show-ref.c +3 -3
@@ -5,9 +5,9 @@#include "gettext.h" #include "hex.h" #include "refs/refs-internal.h" -#include "object-name.h" -#include "odb.h" -#include "object.h" +#include "odb/object-name.h" +#include "odb/odb.h" +#include "odb/object.h" #include "string-list.h" #include "parse-options.h"
builtin/sparse-checkout.c +2 -2
@@ -7,8 +7,8 @@#include "dir.h" #include "environment.h" #include "gettext.h" -#include "object-file.h" -#include "object-name.h" +#include "odb/object-file.h" +#include "odb/object-name.h" #include "parse-options.h" #include "path.h" #include "pathspec.h"
builtin/stash.c +4 -4
@@ -5,9 +5,9 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "refs.h" #include "lockfile.h"
@@ -30,8 +30,8 @@#include "reflog.h" #include "reflog-walk.h" #include "add-interactive.h" -#include "oid-array.h" -#include "commit.h" +#include "odb/oid-array.h" +#include "odb/commit.h" #define INCLUDE_ALL_FILES 2
builtin/submodule--helper.c +3 -3
@@ -26,9 +26,9 @@#include "revision.h" #include "diffcore.h" #include "diff.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "odb/source.h" #include "advice.h" #include "branch.h"
builtin/tag.c +6 -6
@@ -17,21 +17,21 @@#include "gettext.h" #include "hex.h" #include "refs.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "path.h" -#include "tag.h" +#include "odb/tag.h" #include "parse-options.h" #include "diff.h" #include "revision.h" #include "gpg-interface.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "column.h" #include "ref-filter.h" #include "date.h" #include "write-or-die.h" -#include "object-file-convert.h" +#include "odb/object-file-convert.h" #include "trailer.h" static const char *const git_tag_usage[] = {
builtin/unpack-file.c +3 -3
@@ -3,9 +3,9 @@#include "config.h" #include "environment.h" #include "hex.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" static char *create_temp_file (struct object_id *oid) {
builtin/unpack-objects.c +6 -6
@@ -7,19 +7,19 @@#include "gettext.h" #include "git-zlib.h" #include "hex.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "odb/streaming.h" #include "odb/transaction.h" -#include "object.h" +#include "odb/object.h" #include "delta.h" #include "pack.h" -#include "blob.h" -#include "replace-object.h" +#include "odb/blob.h" +#include "odb/replace-object.h" #include "strbuf.h" #include "progress.h" #include "decorate.h" -#include "fsck.h" +#include "odb/fsck.h" #include "packfile.h" static int dry_run, quiet, recover, has_errors, strict;
builtin/update-index.c +4 -4
@@ -11,14 +11,14 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "lockfile.h" #include "quote.h" #include "cache-tree.h" -#include "tree-walk.h" -#include "object-file.h" -#include "odb.h" +#include "odb/tree-walk.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "odb/transaction.h" #include "refs.h" #include "resolve-undo.h"
builtin/update-ref.c +2 -2
@@ -5,10 +5,10 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "refs.h" -#include "object-name.h" +#include "odb/object-name.h" #include "parse-options.h" #include "quote.h"
builtin/upload-pack.c +2 -2
@@ -6,11 +6,11 @@#include "pkt-line.h" #include "parse-options.h" #include "protocol.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "upload-pack.h" #include "serve.h" #include "setup.h" -#include "commit.h" +#include "odb/commit.h" #include "environment.h" static const char *const upload_pack_usage[] = {
builtin/verify-commit.c +2 -2
@@ -9,8 +9,8 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "object-name.h" -#include "commit.h" +#include "odb/object-name.h" +#include "odb/commit.h" #include "parse-options.h" #include "gpg-interface.h"
builtin/verify-tag.c +2 -2
@@ -9,8 +9,8 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "tag.h" -#include "object-name.h" +#include "odb/tag.h" +#include "odb/object-name.h" #include "parse-options.h" #include "gpg-interface.h" #include "ref-filter.h"
builtin/worktree.c +2 -2
@@ -11,8 +11,8 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "object-file.h" -#include "object-name.h" +#include "odb/object-file.h" +#include "odb/object-name.h" #include "parse-options.h" #include "path.h" #include "strvec.h"
builtin/write-tree.c +1 -1
@@ -9,7 +9,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "tree.h" +#include "odb/tree.h" #include "cache-tree.h" #include "parse-options.h"
bundle-uri.c +1 -1
@@ -14,7 +14,7 @@#include "fetch-pack.h" #include "remote.h" #include "trace2.h" -#include "odb.h" +#include "odb/odb.h" static struct { enum bundle_list_heuristic heuristic;
bundle.c +3 -3
@@ -7,10 +7,10 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "odb.h" +#include "odb/odb.h" #include "repository.h" -#include "object.h" -#include "commit.h" +#include "odb/object.h" +#include "odb/commit.h" #include "diff.h" #include "revision.h" #include "list-objects.h"
cache-tree.c +5 -5
@@ -5,14 +5,14 @@#include "gettext.h" #include "hex.h" #include "lockfile.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "cache-tree.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "odb/transaction.h" #include "read-cache-ll.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "repository.h" #include "promisor-remote.h" #include "trace.h"
cache-tree.h +2 -2
@@ -1,8 +1,8 @@#ifndef CACHE_TREE_H #define CACHE_TREE_H -#include "tree.h" -#include "tree-walk.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" struct cache_tree ; struct cache_tree_sub {
checkout.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "object-name.h" +#include "odb/object-name.h" #include "remote.h" #include "refspec.h" #include "repository.h"
checkout.h +1 -1
@@ -1,7 +1,7 @@#ifndef CHECKOUT_H #define CHECKOUT_H -#include "hash.h" +#include "odb/hash.h" /* * Check if the branch name uniquely matches a branch name on a remote
chunk-format.c +1 -1
@@ -5,7 +5,7 @@#include "chunk-format.h" #include "csum-file.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "trace2.h" /*
chunk-format.h +1 -1
@@ -1,7 +1,7 @@#ifndef CHUNK_FORMAT_H #define CHUNK_FORMAT_H -#include "hash.h" +#include "odb/hash.h" struct hashfile ;struct chunkfile ;
combine-diff.c +5 -5
@@ -2,22 +2,22 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "odb.h" -#include "commit.h" +#include "odb/odb.h" +#include "odb/commit.h" #include "convert.h" #include "diff.h" #include "diffcore.h" #include "environment.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "quote.h" #include "xdiff-interface.h" #include "xdiff/xmacros.h" #include "log-tree.h" #include "refs.h" -#include "tree.h" +#include "odb/tree.h" #include "userdiff.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "revision.h" static int compare_paths(const struct combine_diff_path *one,
commit-graph.c +9 -9
@@ -8,24 +8,24 @@#include "hex.h" #include "lockfile.h" #include "packfile.h" -#include "commit.h" -#include "object.h" +#include "odb/commit.h" +#include "odb/object.h" #include "refs.h" -#include "hash-lookup.h" +#include "odb/hash-lookup.h" #include "commit-graph.h" -#include "odb.h" -#include "oid-array.h" +#include "odb/odb.h" +#include "odb/oid-array.h" #include "path.h" -#include "alloc.h" +#include "odb/alloc.h" #include "hashmap.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "progress.h" #include "bloom.h" -#include "commit-slab.h" +#include "odb/commit-slab.h" #include "shallow.h" #include "json-writer.h" #include "trace2.h" -#include "tree.h" +#include "odb/tree.h" #include "chunk-format.h" void git_test_write_commit_graph_or_die (struct odb_source *source)
commit-graph.h +2 -2
@@ -1,8 +1,8 @@#ifndef COMMIT_GRAPH_H #define COMMIT_GRAPH_H -#include "odb.h" -#include "oidset.h" +#include "odb/odb.h" +#include "odb/oidset.h" #define GIT_TEST_COMMIT_GRAPH "GIT_TEST_COMMIT_GRAPH"#define GIT_TEST_COMMIT_GRAPH_DIE_ON_PARSE "GIT_TEST_COMMIT_GRAPH_DIE_ON_PARSE"
commit-reach.c +2 -2
@@ -1,14 +1,14 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "commit.h" +#include "odb/commit.h" #include "commit-graph.h" #include "decorate.h" #include "hex.h" #include "prio-queue.h" #include "ref-filter.h" #include "revision.h" -#include "tag.h" +#include "odb/tag.h" #include "commit-reach.h" #include "ewah/ewok.h"
commit-reach.h +2 -2
@@ -1,8 +1,8 @@#ifndef COMMIT_REACH_H #define COMMIT_REACH_H -#include "commit.h" -#include "commit-slab.h" +#include "odb/commit.h" +#include "odb/commit-slab.h" struct commit_list ;struct ref_filter ;
common-init.c +2 -2
@@ -5,10 +5,10 @@#include "exec-cmd.h" #include "gettext.h" #include "attr.h" -#include "odb.h" +#include "odb/odb.h" #include "parse.h" #include "repository.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "setup.h" #include "strbuf.h" #include "trace2.h"
compat/mingw.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "abspath.h" -#include "alloc.h" +#include "odb/alloc.h" #include "config.h" #include "dir.h" #include "environment.h"
compat/sha1-chunked.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "hash.h" +#include "odb/hash.h" int git_SHA1_Update_Chunked (platform_SHA_CTX *c,const void *data,size_t len) {
config.c +2 -2
@@ -25,8 +25,8 @@#include "quote.h" #include "hashmap.h" #include "string-list.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "path.h" #include "utf8.h" #include "color.h"
connect.c +1 -1
@@ -13,7 +13,7 @@#include "connect.h" #include "url.h" #include "string-list.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "path.h" #include "transport.h" #include "trace2.h"
connected.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "gettext.h" #include "hex.h" -#include "odb.h" +#include "odb/odb.h" #include "run-command.h" #include "sigchain.h" #include "connected.h"
convert.c +1 -1
@@ -8,7 +8,7 @@#include "copy.h" #include "gettext.h" #include "hex.h" -#include "object-file.h" +#include "odb/object-file.h" #include "attr.h" #include "run-command.h" #include "quote.h"
convert.h +1 -1
@@ -4,7 +4,7 @@#ifndef CONVERT_H #define CONVERT_H -#include "hash.h" +#include "odb/hash.h" #include "string-list.h" struct index_state ;
csum-file.c +1 -1
@@ -11,7 +11,7 @@#include "git-compat-util.h" #include "csum-file.h" #include "git-zlib.h" -#include "hash.h" +#include "odb/hash.h" #include "progress.h" static void verify_buffer_or_die(struct hashfile *f,
csum-file.h +1 -1
@@ -1,7 +1,7 @@#ifndef CSUM_FILE_H #define CSUM_FILE_H -#include "hash.h" +#include "odb/hash.h" #include "write-or-die.h" struct progress ;
decorate.c +1 -1
@@ -4,7 +4,7 @@*/ #include "git-compat-util.h" -#include "object.h" +#include "odb/object.h" #include "decorate.h" static unsigned int hash_obj (const struct object *obj,unsigned int n)
delta-islands.c +6 -6
@@ -1,14 +1,14 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "object.h" -#include "commit.h" +#include "odb/object.h" +#include "odb/commit.h" #include "gettext.h" #include "hex.h" -#include "tag.h" -#include "tree.h" +#include "odb/tag.h" +#include "odb/tree.h" #include "pack.h" -#include "tree-walk.h" +#include "odb/tree-walk.h" #include "diff.h" #include "progress.h" #include "refs.h"
@@ -16,7 +16,7 @@#include "pack-bitmap.h" #include "pack-objects.h" #include "delta-islands.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "config.h" KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
diagnose.c +1 -1
@@ -7,7 +7,7 @@#include "gettext.h" #include "hex.h" #include "strvec.h" -#include "odb.h" +#include "odb/odb.h" #include "packfile.h" #include "parse-options.h" #include "repository.h"
diff-lib.c +3 -3
@@ -6,13 +6,13 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "diffcore.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" -#include "object-name.h" +#include "odb/object-name.h" #include "read-cache.h" #include "revision.h" #include "cache-tree.h"
diff-no-index.c +1 -1
@@ -9,7 +9,7 @@#include "git-compat-util.h" #include "abspath.h" #include "color.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "diffcore.h" #include "gettext.h"
diff.c +5 -5
@@ -23,7 +23,7 @@#include "color.h" #include "run-command.h" #include "utf8.h" -#include "odb.h" +#include "odb/odb.h" #include "userdiff.h" #include "submodule.h" #include "hashmap.h"
@@ -31,17 +31,17 @@#include "merge-ll.h" #include "string-list.h" #include "strvec.h" -#include "tmp-objdir.h" +#include "odb/tmp-objdir.h" #include "graph.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "packfile.h" #include "pager.h" #include "parse-options.h" #include "help.h" #include "promisor-remote.h" #include "dir.h" -#include "object-file.h" -#include "object-name.h" +#include "odb/object-file.h" +#include "odb/object-name.h" #include "read-cache-ll.h" #include "setup.h" #include "strmap.h"
diff.h +1 -1
@@ -4,7 +4,7 @@#ifndef DIFF_H #define DIFF_H -#include "hash.h" +#include "odb/hash.h" #include "pathspec.h" #include "strbuf.h" #include "color.h"
diffcore-break.c +2 -2
@@ -6,8 +6,8 @@#include "git-compat-util.h" #include "diffcore.h" -#include "hash.h" -#include "object.h" +#include "odb/hash.h" +#include "odb/object.h" #include "promisor-remote.h" static int should_break(struct repository *r,
diffcore-pickaxe.c +1 -1
@@ -10,7 +10,7 @@#include "diffcore.h" #include "xdiff-interface.h" #include "kwset.h" -#include "oidset.h" +#include "odb/oidset.h" #include "pretty.h" #include "quote.h"
diffcore-rename.c +2 -2
@@ -8,10 +8,10 @@#include "git-compat-util.h" #include "diff.h" #include "diffcore.h" -#include "object-file.h" +#include "odb/object-file.h" #include "hashmap.h" #include "mem-pool.h" -#include "oid-array.h" +#include "odb/oid-array.h" #include "progress.h" #include "promisor-remote.h" #include "string-list.h"
diffcore.h +1 -1
@@ -4,7 +4,7 @@#ifndef DIFFCORE_H #define DIFFCORE_H -#include "hash.h" +#include "odb/hash.h" struct diff_options ;struct mem_pool ;
dir.c +2 -2
@@ -17,7 +17,7 @@#include "environment.h" #include "gettext.h" #include "name-hash.h" -#include "object-file.h" +#include "odb/object-file.h" #include "path.h" #include "refs.h" #include "repository.h"
@@ -34,7 +34,7 @@#include "submodule-config.h" #include "symlinks.h" #include "trace2.h" -#include "tree.h" +#include "odb/tree.h" #include "hex.h" /*
dir.h +1 -1
@@ -1,7 +1,7 @@#ifndef DIR_H #define DIR_H -#include "hash.h" +#include "odb/hash.h" #include "hashmap.h" #include "pathspec.h" #include "statinfo.h"
entry.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "odb.h" +#include "odb/odb.h" #include "odb/streaming.h" #include "dir.h" #include "environment.h"
environment.c +2 -2
@@ -23,12 +23,12 @@#include "ident.h" #include "lockfile.h" #include "mailmap.h" -#include "object-name.h" +#include "odb/object-name.h" #include "repository.h" #include "config.h" #include "refs.h" #include "fmt-merge-msg.h" -#include "commit.h" +#include "odb/commit.h" #include "strvec.h" #include "pager.h" #include "path.h"
fetch-object-info.c +2 -2
@@ -3,8 +3,8 @@#include "hex.h" #include "pkt-line.h" #include "connect.h" -#include "oid-array.h" -#include "odb.h" +#include "odb/oid-array.h" +#include "odb/odb.h" #include "fetch-object-info.h" #include "string-list.h"
fetch-pack.c +7 -7
@@ -11,8 +11,8 @@#include "lockfile.h" #include "refs.h" #include "pkt-line.h" -#include "commit.h" -#include "tag.h" +#include "odb/commit.h" +#include "odb/tag.h" #include "pack.h" #include "sideband.h" #include "fetch-pack.h"
@@ -21,15 +21,15 @@#include "connect.h" #include "trace2.h" #include "version.h" -#include "oid-array.h" -#include "oidset.h" +#include "odb/oid-array.h" +#include "odb/oidset.h" #include "packfile.h" -#include "odb.h" -#include "object-name.h" +#include "odb/odb.h" +#include "odb/object-name.h" #include "path.h" #include "connected.h" #include "fetch-negotiator.h" -#include "fsck.h" +#include "odb/fsck.h" #include "shallow.h" #include "commit-reach.h" #include "commit-graph.h"
fetch-pack.h +1 -1
@@ -4,7 +4,7 @@#include "string-list.h" #include "protocol.h" #include "list-objects-filter-options.h" -#include "oidset.h" +#include "odb/oidset.h" struct oid_array ;
fmt-merge-msg.c +3 -3
@@ -5,13 +5,13 @@#include "config.h" #include "environment.h" #include "refs.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "diff.h" #include "diff-merges.h" #include "hex.h" #include "revision.h" -#include "tag.h" +#include "odb/tag.h" #include "string-list.h" #include "branch.h" #include "fmt-merge-msg.h"
fsmonitor.h +1 -1
@@ -4,7 +4,7 @@#include "fsmonitor-ll.h" #include "dir.h" #include "fsmonitor-settings.h" -#include "object.h" +#include "odb/object.h" #include "read-cache-ll.h" #include "trace.h"
git.c +2 -2
@@ -6,12 +6,12 @@#include "exec-cmd.h" #include "gettext.h" #include "help.h" -#include "object-file.h" +#include "odb/object-file.h" #include "pager.h" #include "read-cache-ll.h" #include "run-command.h" #include "alias.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "setup.h" #include "attr.h" #include "shallow.h"
gpg-interface.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "commit.h" +#include "odb/commit.h" #include "config.h" #include "date.h" #include "gettext.h"
graph.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "gettext.h" #include "config.h" -#include "commit.h" +#include "odb/commit.h" #include "color.h" #include "graph.h" #include "revision.h"
grep.c +1 -1
@@ -5,7 +5,7 @@#include "gettext.h" #include "grep.h" #include "hex.h" -#include "odb.h" +#include "odb/odb.h" #include "pretty.h" #include "userdiff.h" #include "xdiff-interface.h"
help.c +1 -1
@@ -9,7 +9,7 @@#include "run-command.h" #include "levenshtein.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "help.h" #include "command-list.h" #include "string-list.h"
hex.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "strbuf.h"
hex.h +1 -1
@@ -1,7 +1,7 @@#ifndef HEX_H #define HEX_H -#include "hash.h" +#include "odb/hash.h" #include "hex-ll.h" /*
http-backend.c +3 -3
@@ -10,8 +10,8 @@#include "repository.h" #include "refs.h" #include "pkt-line.h" -#include "object.h" -#include "tag.h" +#include "odb/object.h" +#include "odb/tag.h" #include "exec-cmd.h" #include "run-command.h" #include "string-list.h"
@@ -19,7 +19,7 @@#include "setup.h" #include "strvec.h" #include "packfile.h" -#include "odb.h" +#include "odb/odb.h" #include "protocol.h" #include "date.h" #include "write-or-die.h"
http-push.c +7 -7
@@ -4,9 +4,9 @@#include "environment.h" #include "hex.h" #include "repository.h" -#include "commit.h" -#include "tag.h" -#include "blob.h" +#include "odb/commit.h" +#include "odb/tag.h" +#include "odb/blob.h" #include "http.h" #include "diff.h" #include "revision.h"
@@ -15,12 +15,12 @@#include "setup.h" #include "sigchain.h" #include "strvec.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "url.h" #include "packfile.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "commit-reach.h" #ifdef EXPAT_NEEDS_XMLPARSE_H
http-walker.c +2 -2
@@ -9,8 +9,8 @@#include "list.h" #include "transport.h" #include "packfile.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" struct alt_base {char *base;
http.c +2 -2
@@ -19,8 +19,8 @@#include "transport.h" #include "packfile.h" #include "string-list.h" -#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" #include "tempfile.h" #include "date.h" #include "trace2.h"
khash.h +1 -1
@@ -26,7 +26,7 @@#ifndef __AC_KHASH_H#define __AC_KHASH_H -#include "hash.h" +#include "odb/hash.h" #define AC_VERSION_KHASH_H "0.2.8"
line-log.c +4 -4
@@ -4,10 +4,10 @@#include "diffcore.h" #include "line-range.h" #include "hex.h" -#include "tag.h" -#include "tree.h" +#include "odb/tag.h" +#include "odb/tree.h" #include "diff.h" -#include "commit.h" +#include "odb/commit.h" #include "decorate.h" #include "repository.h" #include "revision.h"
@@ -17,7 +17,7 @@#include "setup.h" #include "strvec.h" #include "bloom.h" -#include "tree-walk.h" +#include "odb/tree-walk.h" static void range_set_grow (struct range_set *rs,size_t extra) {
list-objects-filter-options.h +1 -1
@@ -2,7 +2,7 @@#define LIST_OBJECTS_FILTER_OPTIONS_H #include "gettext.h" -#include "object.h" +#include "odb/object.h" #include "strbuf.h" struct option ;
list-objects-filter.c +5 -5
@@ -4,15 +4,15 @@#include "dir.h" #include "gettext.h" #include "hex.h" -#include "commit.h" +#include "odb/commit.h" #include "diff.h" #include "revision.h" #include "list-objects-filter.h" #include "list-objects-filter-options.h" -#include "oidmap.h" -#include "oidset.h" -#include "object-name.h" -#include "odb.h" +#include "odb/oidmap.h" +#include "odb/oidset.h" +#include "odb/object-name.h" +#include "odb/odb.h" /* Remember to update object flag allocation in object.h */ /*
list-objects.c +6 -6
@@ -1,20 +1,20 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "tag.h" -#include "commit.h" +#include "odb/tag.h" +#include "odb/commit.h" #include "gettext.h" #include "hex.h" -#include "tree.h" -#include "blob.h" +#include "odb/tree.h" +#include "odb/blob.h" #include "diff.h" -#include "tree-walk.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 "packfile.h" -#include "odb.h" +#include "odb/odb.h" #include "trace.h" #include "environment.h"
log-tree.c +8 -8
@@ -3,24 +3,24 @@#include "git-compat-util.h" #include "commit-reach.h" -#include "commit-slab.h" +#include "odb/commit-slab.h" #include "config.h" #include "diff.h" #include "diffcore.h" #include "environment.h" #include "hex.h" -#include "object-name.h" -#include "object-file.h" +#include "odb/object-name.h" +#include "odb/object-file.h" #include "repository.h" -#include "tmp-objdir.h" -#include "commit.h" -#include "tag.h" +#include "odb/tmp-objdir.h" +#include "odb/commit.h" +#include "odb/tag.h" #include "graph.h" #include "log-tree.h" #include "merge-ort.h" #include "reflog-walk.h" #include "refs.h" -#include "replace-object.h" +#include "odb/replace-object.h" #include "revision.h" #include "string-list.h" #include "color.h"
@@ -30,7 +30,7 @@#include "help.h" #include "range-diff.h" #include "strmap.h" -#include "tree.h" +#include "odb/tree.h" #include "wildmatch.h" #include "write-or-die.h" #include "pager.h"
ls-refs.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "environment.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "repository.h" #include "refs.h"
mailmap.c +2 -2
@@ -2,8 +2,8 @@#include "environment.h" #include "string-list.h" #include "mailmap.h" -#include "object-name.h" -#include "odb.h" +#include "odb/object-name.h" +#include "odb/odb.h" #include "setup.h" #include "config.h"
merge-blobs.c +2 -2
@@ -2,9 +2,9 @@#include "git-compat-util.h" #include "merge-ll.h" -#include "blob.h" +#include "odb/blob.h" #include "merge-blobs.h" -#include "odb.h" +#include "odb/odb.h" static int fill_mmfile_blob (mmfile_t *f,struct blob *obj) {
merge-ort-wrappers.c +4 -4
@@ -1,16 +1,16 @@#include "git-compat-util.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "lockfile.h" #include "merge-ort.h" #include "merge-ort-wrappers.h" #include "read-cache-ll.h" #include "repository.h" -#include "tag.h" -#include "tree.h" +#include "odb/tag.h" +#include "odb/tree.h" -#include "commit.h" +#include "odb/commit.h" static int unclean (struct merge_options *opt,struct tree *head) {
merge-ort.c +8 -8
@@ -20,11 +20,11 @@#include "git-compat-util.h" #include "merge-ort.h" -#include "alloc.h" +#include "odb/alloc.h" #include "advice.h" #include "attr.h" #include "cache-tree.h" -#include "commit.h" +#include "odb/commit.h" #include "commit-reach.h" #include "config.h" #include "diff.h"
@@ -35,12 +35,12 @@#include "hex.h" #include "entry.h" #include "merge-ll.h" -#include "match-trees.h" +#include "odb/match-trees.h" #include "mem-pool.h" -#include "object-file.h" -#include "object-name.h" -#include "odb.h" -#include "oid-array.h" +#include "odb/object-file.h" +#include "odb/object-name.h" +#include "odb/odb.h" +#include "odb/oid-array.h" #include "path.h" #include "promisor-remote.h" #include "read-cache-ll.h"
@@ -49,7 +49,7 @@#include "sparse-index.h" #include "strmap.h" #include "trace2.h" -#include "tree.h" +#include "odb/tree.h" #include "unpack-trees.h" #include "xdiff-interface.h"
merge-ort.h +1 -1
@@ -1,7 +1,7 @@#ifndef MERGE_ORT_H #define MERGE_ORT_H -#include "hash.h" +#include "odb/hash.h" #include "strbuf.h" struct commit ;
merge.c +4 -4
@@ -2,16 +2,16 @@#include "git-compat-util.h" #include "gettext.h" -#include "hash.h" +#include "odb/hash.h" #include "hex.h" #include "lockfile.h" #include "merge.h" -#include "commit.h" +#include "odb/commit.h" #include "repository.h" #include "run-command.h" #include "resolve-undo.h" -#include "tree.h" -#include "tree-walk.h" +#include "odb/tree.h" +#include "odb/tree-walk.h" #include "unpack-trees.h" static const char *merge_argument (struct commit *commit)
meson.build +23 -23
122 lines not on this page · raw message
midx-write.c +2 -2
@@ -4,8 +4,8 @@#include "hex.h" #include "lockfile.h" #include "packfile.h" -#include "object-file.h" -#include "hash-lookup.h" +#include "odb/object-file.h" +#include "odb/hash-lookup.h" #include "midx.h" #include "progress.h" #include "trace2.h"
midx.c +1 -1
@@ -5,7 +5,7 @@#include "dir.h" #include "hex.h" #include "packfile.h" -#include "hash-lookup.h" +#include "odb/hash-lookup.h" #include "midx.h" #include "progress.h" #include "trace2.h"
name-hash.c +1 -1
@@ -13,7 +13,7 @@#include "environment.h" #include "gettext.h" #include "name-hash.h" -#include "object.h" +#include "odb/object.h" #include "read-cache-ll.h" #include "thread-utils.h" #include "trace.h"
negotiator/default.c +2 -2
@@ -2,12 +2,12 @@#include "git-compat-util.h" #include "default.h" -#include "../commit.h" +#include "odb/commit.h" #include "../fetch-negotiator.h" #include "../prio-queue.h" #include "../refs.h" #include "../repository.h" -#include "../tag.h" +#include "odb/tag.h" /* Remember to update object flag allocation in object.h */ #define COMMON (1U << 2)
negotiator/skipping.c +2 -2
@@ -2,13 +2,13 @@#include "git-compat-util.h" #include "skipping.h" -#include "../commit.h" +#include "odb/commit.h" #include "../fetch-negotiator.h" #include "../hex.h" #include "../prio-queue.h" #include "../refs.h" #include "../repository.h" -#include "../tag.h" +#include "odb/tag.h" /* Remember to update object flag allocation in object.h */ /*
notes-cache.c +3 -3
@@ -2,11 +2,11 @@#include "git-compat-util.h" #include "notes-cache.h" -#include "object-file.h" -#include "odb.h"
Lines of this file are not shown. View the raw message.
odb/alloc.h renamed from alloc.h +0 -0
odb/cbtree.h renamed from cbtree.h +0 -0
odb/commit-slab-decl.h renamed from commit-slab-decl.h +0 -0
odb/commit-slab-impl.h renamed from commit-slab-impl.h +0 -0
odb/commit-slab.h renamed from commit-slab.h +2 -2
Lines of this file are not shown. View the raw message.
odb/hash-lookup.c renamed from hash-lookup.c +2 -2
Lines of this file are not shown. View the raw message.
odb/hash-lookup.h renamed from hash-lookup.h +0 -0
odb/hash.h renamed from hash.h +0 -0
odb/loose.h renamed from loose.h +0 -0
odb/match-trees.c renamed from match-trees.c +5 -5
Lines of this file are not shown. View the raw message.
odb/match-trees.h renamed from match-trees.h +0 -0
odb/object-file-convert.c renamed from object-file-convert.c +5 -5
Lines of this file are not shown. View the raw message.
odb/object-file-convert.h renamed from object-file-convert.h +1 -1
Lines of this file are not shown. View the raw message.
odb/object-file.c renamed from object-file.c +6 -6
Lines of this file are not shown. View the raw message.
odb/object-file.h renamed from object-file.h +2 -2
Lines of this file are not shown. View the raw message.
odb/object-name.c renamed from object-name.c +8 -8
Lines of this file are not shown. View the raw message.
odb/object-name.h renamed from object-name.h +1 -1
Lines of this file are not shown. View the raw message.
odb/oid-array.c renamed from oid-array.c +2 -2
Lines of this file are not shown. View the raw message.
odb/oid-array.h renamed from oid-array.h +1 -1
Lines of this file are not shown. View the raw message.
odb/oidset.h renamed from oidset.h +0 -0
odb/replace-object.c renamed from replace-object.c +4 -4
Lines of this file are not shown. View the raw message.
odb/replace-object.h renamed from replace-object.h +2 -2
Lines of this file are not shown. View the raw message.
odb/tmp-objdir.c renamed from tmp-objdir.c +3 -3
Lines of this file are not shown. View the raw message.
odb/tmp-objdir.h renamed from tmp-objdir.h +0 -0
odb/tree-walk.c renamed from tree-walk.c +4 -4
Lines of this file are not shown. View the raw message.
odb/tree-walk.h renamed from tree-walk.h +1 -1
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.
Re: [RFC PATCH 07/14] odb: gather the odb sources under odb/
Quoted 2 lines · Michael Montalbo
Move the 23 odb C sources and 26 headers into odb/ as renames.
i for one would go with lib/odb/.
builtin/add.c line 18
Quoted 6 lines
+++
b/builtin/add.cbuiltin/add.c +2
-2-#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h"
that's the wrong include style here.
it was already wrong in a lot of places, but as you rewrite everything anyway, you could fix it just as well.
Re: [RFC PATCH 07/14] odb: gather the odb sources under odb/
Quoted 5 lines · Oswald Buddenhagen
Quoted 2 lines · Michael Montalbo
Move the 23 odb C sources and 26 headers into odb/ as renames.
i for one would go with
lib/odb/.
Quoted 9 lines
builtin/add.c line 18
Quoted 6 lines
+++
b/builtin/add.cbuiltin/add.c +2
-2-#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" that's the wrong include style here.
it was already wrong in a lot of places, but as you rewrite everything anyway, you could fix it just as well.
I do not agree with lib/odb/ suggestion, but I am curious what you think the "right" include stle is, because I cannot read it out of what you have written. Please do not assume that everybody knows what you think is right or wrong.
Do you mean they should not be quoted in a pair of double quotes because the behaviour of such includes is implementation-defined (instead use "<>" as we use -I<path> on the command line)? Do you mean they should be alphabetical? Something else?
Thanks.
Re: [RFC PATCH 07/14] odb: gather the odb sources under odb/
Quoted 8 lines · Junio C Hamano
Quoted 5 lines · Oswald Buddenhagen
Quoted 2 lines · Michael Montalbo
Move the 23 odb C sources and 26 headers into odb/ as renames.
i for one would go with
lib/odb/.I do not agree with
lib/odb/suggestion,
why not? it's hugely beneficial for the comprehensibility of the build system and discoverability when the physical project structure follows the logical one.
Quoted 9 lines
Quoted 8 lines
builtin/add.c line 18
Quoted 6 lines
+++
b/builtin/add.cbuiltin/add.c +2
-2-#include "object-file.h" -#include "odb.h" +#include "odb/object-file.h" +#include "odb/odb.h" that's the wrong include style here.
it was already wrong in a lot of places, but as you rewrite everything anyway, you could fix it just as well.
Quoted 4 lines
Do you mean they should not be quoted in a pair of double quotes because the behaviour of such includes is implementation-defined (instead use "<>" as we use -I<path> on the command line)?
yes.
(actually, i don't mind relying on the popular interpretation that ""-style means relative to the including file's containing directory. that mostly implies that "" is ok for in-module references when headers and sources live side by side.)
Quoted 2 lines
Something else?
everything else i can think of would require more context, so it's a good first guess to assume that i didn't mean it.
RFC PATCH 8/14 refs: gather the refs sources under refs/
In reply to Michael MontalboMove the 8 refs C sources and 8 headers into refs/ 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 | 32 ++++++++++++++--------------- Makefile | 16 +++++++-------- add-interactive.c | 2 +- archive.c | 2 +- attr.c | 2 +- bisect.c | 2 +- blame.c | 2 +- branch.c | 6 +++--- builtin/am.c | 2 +- builtin/bisect.c | 2 +- builtin/blame.c | 2 +- builtin/branch.c | 6 +++--- builtin/check-ref-format.c | 2 +- builtin/checkout.c | 2 +- builtin/clone.c | 4 ++-- builtin/config.c | 2 +- builtin/describe.c | 2 +- builtin/fast-export.c | 4 ++-- builtin/fast-import.c | 2 +- builtin/fetch.c | 4 ++-- builtin/for-each-ref.c | 2 +- builtin/fsck.c | 4 ++-- builtin/gc.c | 6 +++--- builtin/history.c | 2 +- builtin/init-db.c | 2 +- builtin/log.c | 4 ++-- builtin/ls-remote.c | 2 +- builtin/merge.c | 4 ++-- builtin/name-rev.c | 2 +- builtin/notes.c | 4 ++-- builtin/pack-objects.c | 2 +- builtin/pack-refs.c | 2 +- builtin/pull.c | 4 ++-- builtin/push.c | 2 +- builtin/rebase.c | 2 +- builtin/receive-pack.c | 4 ++-- builtin/reflog.c | 6 +++--- builtin/refs.c | 6 +++--- builtin/remote.c | 4 ++-- builtin/replace.c | 2 +- builtin/replay.c | 2 +- builtin/repo.c | 4 ++-- builtin/reset.c | 2 +- builtin/rev-list.c | 2 +- builtin/rev-parse.c | 2 +- builtin/show-branch.c | 2 +- builtin/sparse-checkout.c | 2 +- builtin/stash.c | 6 +++--- builtin/submodule--helper.c | 4 ++-- builtin/symbolic-ref.c | 2 +- builtin/tag.c | 4 ++-- builtin/update-index.c | 2 +- builtin/update-ref.c | 2 +- builtin/var.c | 2 +- builtin/verify-tag.c | 2 +- builtin/worktree.c | 4 ++-- bundle-uri.c | 2 +- bundle.c | 2 +- checkout.c | 2 +- combine-diff.c | 2 +- commit-graph.c | 2 +- commit-reach.c | 2 +- config.c | 2 +- connect.c | 2 +- delta-islands.c | 2 +- diff-lib.c | 2 +- dir.c | 2 +- environment.c | 2 +- fetch-pack.c | 2 +- fmt-merge-msg.c | 2 +- help.c | 2 +- http-backend.c | 2 +- log-tree.c | 4 ++-- merge-ort.c | 2 +- meson.build | 16 +++++++-------- midx-write.c | 2 +- negotiator/default.c | 2 +- negotiator/skipping.c | 2 +- notes-cache.c | 2 +- notes-merge.c | 2 +- notes-utils.c | 2 +- notes.c | 2 +- odb/commit.c | 2 +- odb/fsck.c | 2 +- odb/object-name.c | 2 +- odb/replace-object.c | 2 +- pack-bitmap-write.c | 2 +- pack-bitmap.h | 2 +- path.c | 2 +- pretty.c | 2 +- pseudo-merge.c | 2 +- reachable.c | 4 ++-- read-cache.c | 2 +- refs/files-backend.c | 4 ++-- refs/iterator.c | 2 +- ls-refs.c => refs/ls-refs.c | 4 ++-- ls-refs.h => refs/ls-refs.h | 0 pack-refs.c => refs/pack-refs.c | 4 ++-- pack-refs.h => refs/pack-refs.h | 0 refs/packed-backend.c | 4 ++-- refs/ref-cache.c | 2 +- ref-filter.c => refs/ref-filter.c | 6 +++--- ref-filter.h => refs/ref-filter.h | 0 reflog-walk.c => refs/reflog-walk.c | 4 ++-- reflog-walk.h => refs/reflog-walk.h | 0 reflog.c => refs/reflog.c | 4 ++-- reflog.h => refs/reflog.h | 2 +- refs/refs-internal.h | 2 +- refs.c => refs/refs.c | 4 ++-- refs.h => refs/refs.h | 0 refspec.c => refs/refspec.c | 4 ++-- refspec.h => refs/refspec.h | 0 refs/reftable-backend.c | 4 ++-- worktree.c => refs/worktree.c | 4 ++-- worktree.h => refs/worktree.h | 2 +- remote.c | 4 ++-- remote.h | 2 +- repack-midx.c | 2 +- replay.c | 2 +- repository.c | 2 +- reset.c | 2 +- revision.c | 6 +++--- scalar.c | 2 +- sequencer.c | 2 +- serve.c | 2 +- server-info.c | 2 +- setup.c | 4 ++-- setup.h | 2 +- shallow.c | 2 +- submodule.c | 4 ++-- t/helper/test-reach.c | 2 +- t/helper/test-ref-store.c | 4 ++-- transport-helper.c | 4 ++-- transport.c | 4 ++-- unpack-trees.c | 2 +- upload-pack.c | 2 +- walker.c | 2 +- wt-status.c | 4 ++-- 138 files changed, 210 insertions(+), 210 deletions(-) rename ls-refs.c => refs/ls-refs.c (99%) rename ls-refs.h => refs/ls-refs.h (100%) rename pack-refs.c => refs/pack-refs.c (97%) rename pack-refs.h => refs/pack-refs.h (100%) rename ref-filter.c => refs/ref-filter.c (99%) rename ref-filter.h => refs/ref-filter.h (100%) rename reflog-walk.c => refs/reflog-walk.c (99%) rename reflog-walk.h => refs/reflog-walk.h (100%) rename reflog.c => refs/reflog.c (99%) rename reflog.h => refs/reflog.h (99%) rename refs.c => refs/refs.c (99%) rename refs.h => refs/refs.h (100%) rename refspec.c => refs/refspec.c (99%) rename refspec.h => refs/refspec.h (100%) rename worktree.c => refs/worktree.c (99%) rename worktree.h => refs/worktree.h (99%)
.gitorganize +16 -16
@@ -201,8 +201,6 @@ lockfile.c component=? role=lib prefix=lockfile includes=setup:1 cochange=refs:1 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 -ls-refs.c component=refs role=lib prefix=ls-refs includes=setup:3,refs:2,odb:1,transport:1 cochange=refs:26,transport:17,pack:10,revision:5,odb:4 -ls-refs.h component=refs role=header prefix=ls-refs cochange=transport:11,refs:5,submodule:1 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
@@ -290,8 +288,6 @@ pack-mtimes.c component=pack role=lib prefix=pack-mtimes includes=pack:2,odb:1 c pack-mtimes.h component=pack role=header prefix=pack-mtimes cochange=pack:4,odb:2,setup:1,transport:1 pack-objects.c component=pack role=lib prefix=pack-objects includes=pack:3,odb:1,setup:1 cochange=pack:66,diff:17,odb:16,transport:9,index:5 pack-objects.h component=pack role=header prefix=pack-objects includes=pack:2,odb:1 cochange=pack:44,setup:5,odb:1 -pack-refs.c component=refs role=lib prefix=pack-refs includes=refs:2,setup:2,revision:1 cochange=refs:12,transport:8,index:2,merge:2,odb:2 -pack-refs.h component=refs role=header prefix=pack-refs cochange=refs:5 pack-revindex.c component=pack role=lib prefix=pack-revindex includes=pack:3,odb:1,setup:1 cochange=pack:94,odb:7,index:6,transport:5,setup:4 pack-revindex.h component=pack role=header prefix=pack-revindex cochange=pack:32,odb:1 pack-write.c component=pack role=lib prefix=pack-write includes=pack:5,setup:2,odb:1,transport:1 cochange=pack:88,odb:21,transport:21,setup:14,index:10
@@ -353,16 +349,22 @@ rebase-interactive.c component=? role=lib prefix=rebase-interactive includes=odb 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 rebase.h component=? role=public prefix=pull -ref-filter.c component=refs role=lib prefix=ref-filter includes=odb:6,setup:5,refs:3,revision:2,index:1 cochange=refs:112,revision:59,odb:41,transport:40,index:30 -ref-filter.h component=refs role=header prefix=ref-filter includes=odb:2,revision:1 cochange=refs:62,revision:7,transport:6,diff:5,index:4 -reflog-walk.c component=refs role=lib prefix=reflog-walk includes=refs:2,diff:1,odb:1,revision:1,setup:1 cochange=refs:34,revision:26,index:13,diff:9,transport:8 -reflog-walk.h component=refs role=header prefix=reflog-walk cochange=revision:23,refs:19,odb:6,archive:2,index:2 -reflog.c component=refs role=lib prefix=refs includes=odb:3,refs:2,setup:2,revision:1 cochange=refs:18,transport:13,odb:9,revision:7,diff:4 -reflog.h component=refs role=header prefix=reflog includes=refs:1 cochange=refs:8,odb:3,index:1,revision:1,transport:1 -refs.c component=refs role=lib prefix=refs includes=setup:6,odb:5,refs:2,submodule:1 cochange=refs:373,transport:133,setup:116,odb:82,revision:77 -refs.h component=refs role=header prefix=refs includes=odb:2,setup:2 cochange=refs:352,transport:55,revision:34,setup:25,odb:16 -refspec.c component=refs role=lib prefix=refspec includes=refs:2,odb:1,transport:1 cochange=refs:27,transport:26,index:2,submodule:2 -refspec.h component=refs role=header prefix=refspec cochange=transport:31,refs:29,submodule:3,index:2 +refs/ls-refs.c component=refs role=lib prefix=ls-refs includes=setup:3,refs:2,odb:1,transport:1 cochange=refs:26,transport:17,pack:10,revision:5,odb:4 +refs/ls-refs.h component=refs role=header prefix=ls-refs cochange=transport:11,refs:5,submodule:1 +refs/pack-refs.c component=refs role=lib prefix=pack-refs includes=refs:2,setup:2,revision:1 cochange=refs:12,transport:8,index:2,merge:2,odb:2 +refs/pack-refs.h component=refs role=header prefix=pack-refs cochange=refs:5 +refs/ref-filter.c component=refs role=lib prefix=ref-filter includes=odb:6,setup:5,refs:3,revision:2,index:1 cochange=refs:112,revision:59,odb:41,transport:40,index:30 +refs/ref-filter.h component=refs role=header prefix=ref-filter includes=odb:2,revision:1 cochange=refs:62,revision:7,transport:6,diff:5,index:4 +refs/reflog-walk.c component=refs role=lib prefix=reflog-walk includes=refs:2,diff:1,odb:1,revision:1,setup:1 cochange=refs:34,revision:26,index:13,diff:9,transport:8 +refs/reflog-walk.h component=refs role=header prefix=reflog-walk cochange=revision:23,refs:19,odb:6,archive:2,index:2 +refs/reflog.c component=refs role=lib prefix=refs includes=odb:3,refs:2,setup:2,revision:1 cochange=refs:18,transport:13,odb:9,revision:7,diff:4 +refs/reflog.h component=refs role=header prefix=reflog includes=refs:1 cochange=refs:8,odb:3,index:1,revision:1,transport:1 +refs/refs.c component=refs role=lib prefix=refs includes=setup:6,odb:5,refs:2,submodule:1 cochange=refs:373,transport:133,setup:116,odb:82,revision:77 +refs/refs.h component=refs role=header prefix=refs includes=odb:2,setup:2 cochange=refs:352,transport:55,revision:34,setup:25,odb:16 +refs/refspec.c component=refs role=lib prefix=refspec includes=refs:2,odb:1,transport:1 cochange=refs:27,transport:26,index:2,submodule:2 +refs/refspec.h component=refs role=header prefix=refspec cochange=transport:31,refs:29,submodule:3,index:2 +refs/worktree.c component=refs role=lib prefix=worktree includes=setup:4,index:2,refs:2 cochange=refs:73,setup:53,index:22,submodule:13,pack:11 +refs/worktree.h component=refs role=header prefix=worktree includes=refs:1 cochange=refs:61,revision:10,pack:5,setup:5,odb:4 remote-curl.c component=transport role=lib prefix=remote-curl includes=transport:9,setup:3,odb:1 cochange=transport:226,diff:9,revision:6,setup:5,archive:4 remote.c component=transport role=lib prefix=remote includes=odb:3,setup:3,transport:3,refs:2,revision:2 cochange=transport:272,refs:91,revision:56,index:51,odb:30 remote.h component=transport role=header prefix=remote includes=odb:1,refs:1 cochange=transport:245,refs:24,index:12,revision:6,setup:2
@@ -480,8 +482,6 @@ walker.c component=transport role=lib prefix=refs includes=odb:6,refs:1,setup:1, walker.h component=transport role=header prefix=walker includes=transport:1 cochange=transport:19 wildmatch.c component=? role=lib prefix=hex cochange=index:4,refs:3,diff:1,odb:1,revision:1 wildmatch.h component=? role=public prefix=? cochange=index:3,refs:2,diff:1,revision:1,setup:1 -worktree.c component=refs role=lib prefix=worktree includes=setup:4,index:2,refs:2 cochange=refs:73,setup:53,index:22,submodule:13,pack:11 -worktree.h component=refs role=header prefix=worktree includes=refs:1 cochange=refs:61,revision:10,pack:5,setup:5,odb:4 wrapper.c component=? role=lib prefix=wrapper cochange=setup:21,index:16,pack:6,transport:5,convert:4 wrapper.h component=? role=public prefix=wrapper cochange=index:2,revision:1,setup:1 write-or-die.c component=? role=lib prefix=write-or-die cochange=pack:6,setup:6,index:4,transport:2,convert:1
Makefile +8 -8
@@ -1201,7 +1201,7 @@ LIB_OBJS += list-objects.o LIB_OBJS += lockfile.o LIB_OBJS += log-tree.o LIB_OBJS += odb/loose.o -LIB_OBJS += ls-refs.o +LIB_OBJS += refs/ls-refs.o LIB_OBJS += mailinfo.o LIB_OBJS += mailmap.o LIB_OBJS += odb/match-trees.o
@@ -1246,7 +1246,7 @@ LIB_OBJS += pack-bitmap.o LIB_OBJS += pack-check.o LIB_OBJS += pack-mtimes.o LIB_OBJS += pack-objects.o -LIB_OBJS += pack-refs.o +LIB_OBJS += refs/pack-refs.o LIB_OBJS += pack-revindex.o LIB_OBJS += pack-write.o LIB_OBJS += packfile.o
@@ -1278,17 +1278,17 @@ LIB_OBJS += reachable.o LIB_OBJS += read-cache.o LIB_OBJS += rebase-interactive.o LIB_OBJS += rebase.o -LIB_OBJS += ref-filter.o -LIB_OBJS += reflog-walk.o -LIB_OBJS += reflog.o -LIB_OBJS += refs.o +LIB_OBJS += refs/ref-filter.o +LIB_OBJS += refs/reflog-walk.o +LIB_OBJS += refs/reflog.o +LIB_OBJS += refs/refs.o LIB_OBJS += refs/debug.o LIB_OBJS += refs/files-backend.o LIB_OBJS += refs/reftable-backend.o LIB_OBJS += refs/iterator.o LIB_OBJS += refs/packed-backend.o LIB_OBJS += refs/ref-cache.o -LIB_OBJS += refspec.o +LIB_OBJS += refs/refspec.o LIB_OBJS += reftable/basics.o LIB_OBJS += reftable/block.o LIB_OBJS += reftable/blocksource.o
@@ -1377,7 +1377,7 @@ LIB_OBJS += version.o LIB_OBJS += versioncmp.o LIB_OBJS += walker.o LIB_OBJS += wildmatch.o -LIB_OBJS += worktree.o +LIB_OBJS += refs/worktree.o LIB_OBJS += wrapper.o LIB_OBJS += write-or-die.o LIB_OBJS += ws.o
add-interactive.c +1 -1
@@ -11,7 +11,7 @@#include "read-cache-ll.h" #include "repository.h" #include "revision.h" -#include "refs.h" +#include "refs/refs.h" #include "string-list.h" #include "lockfile.h" #include "dir.h"
archive.c +1 -1
@@ -13,7 +13,7 @@#include "path.h" #include "pretty.h" #include "setup.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/odb.h" #include "odb/commit.h" #include "odb/tree.h"
attr.c +1 -1
@@ -20,7 +20,7 @@#include "utf8.h" #include "quote.h" #include "read-cache-ll.h" -#include "refs.h" +#include "refs/refs.h" #include "revision.h" #include "odb/odb.h" #include "setup.h"
bisect.c +1 -1
@@ -9,7 +9,7 @@#include "gettext.h" #include "hex.h" #include "revision.h" -#include "refs.h" +#include "refs/refs.h" #include "list-objects.h" #include "quote.h" #include "run-command.h"
blame.c +1 -1
@@ -2,7 +2,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/odb.h" #include "cache-tree.h" #include "mergesort.h"
branch.c +3 -3
@@ -9,13 +9,13 @@#include "hex.h" #include "odb/object-name.h" #include "path.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "remote.h" #include "repository.h" #include "sequencer.h" #include "odb/commit.h" -#include "worktree.h" +#include "refs/worktree.h" #include "submodule-config.h" #include "run-command.h" #include "strmap.h"
builtin/am.c +1 -1
@@ -22,7 +22,7 @@#include "tempfile.h" #include "lockfile.h" #include "cache-tree.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/commit.h" #include "diff.h" #include "unpack-trees.h"
builtin/bisect.c +1 -1
@@ -9,7 +9,7 @@#include "odb/object-name.h" #include "parse-options.h" #include "bisect.h" -#include "refs.h" +#include "refs/refs.h" #include "strvec.h" #include "run-command.h" #include "odb/oid-array.h"
builtin/blame.c +1 -1
@@ -30,7 +30,7 @@#include "odb/odb.h" #include "pager.h" #include "blame.h" -#include "refs.h" +#include "refs/refs.h" #include "setup.h" #include "odb/tag.h" #include "write-or-die.h"
builtin/branch.c +3 -3
@@ -12,7 +12,7 @@#include "color.h" #include "editor.h" #include "environment.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/commit.h" #include "gettext.h" #include "odb/object-name.h"
@@ -24,8 +24,8 @@#include "strmap.h" #include "column.h" #include "utf8.h" -#include "ref-filter.h" -#include "worktree.h" +#include "refs/ref-filter.h" +#include "refs/worktree.h" #include "help.h" #include "advice.h" #include "commit-reach.h"
builtin/check-ref-format.c +1 -1
@@ -5,7 +5,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" -#include "refs.h" +#include "refs/refs.h" #include "setup.h" #include "strbuf.h"
builtin/checkout.c +1 -1
@@ -24,7 +24,7 @@#include "path.h" #include "preload-index.h" #include "read-cache.h" -#include "refs.h" +#include "refs/refs.h" #include "remote.h" #include "repo-settings.h" #include "resolve-undo.h"
builtin/clone.c +2 -2
@@ -22,8 +22,8 @@#include "hex.h" #include "lockfile.h" #include "parse-options.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "odb/object-file.h" #include "odb/odb.h" #include "odb/tree.h"
builtin/config.c +1 -1
@@ -15,7 +15,7 @@#include "quote.h" #include "setup.h" #include "strbuf.h" -#include "worktree.h" +#include "refs/worktree.h" static const char *const builtin_config_usage[] = {N_ ("git config list [<file-option>] [<display-option>] [--includes]" ),
builtin/describe.c +1 -1
@@ -9,7 +9,7 @@#include "lockfile.h" #include "odb/commit.h" #include "odb/tag.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/object-name.h" #include "parse-options.h" #include "read-cache-ll.h"
builtin/fast-export.c +2 -2
@@ -12,8 +12,8 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "odb/object-file.h" #include "odb/odb.h" #include "odb/commit.h"
builtin/fast-import.c +1 -1
@@ -16,7 +16,7 @@#include "pack.h" #include "path.h" #include "read-cache-ll.h" -#include "refs.h" +#include "refs/refs.h" #include "csum-file.h" #include "quote.h" #include "dir.h"
builtin/fetch.c +2 -2
@@ -11,8 +11,8 @@#include "gettext.h" #include "environment.h" #include "hex.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "odb/object-name.h" #include "odb/odb.h" #include "odb/oidset.h"
builtin/for-each-ref.c +1 -1
@@ -6,7 +6,7 @@#include "gettext.h" #include "odb/object.h" #include "parse-options.h" -#include "ref-filter.h" +#include "refs/ref-filter.h" #include "strbuf.h" #include "strvec.h"
builtin/fsck.c +2 -2
@@ -6,7 +6,7 @@#include "odb/tree.h" #include "odb/blob.h" #include "odb/tag.h" -#include "refs.h" +#include "refs/refs.h" #include "pack.h" #include "cache-tree.h" #include "odb/fsck.h"
@@ -23,7 +23,7 @@#include "resolve-undo.h" #include "run-command.h" #include "sparse-index.h" -#include "worktree.h" +#include "refs/worktree.h" #include "pack-revindex.h" #include "pack-bitmap.h"
builtin/gc.c +3 -3
@@ -32,17 +32,17 @@#include "odb/object-file.h" #include "odb/odb.h" #include "path.h" -#include "reflog.h" +#include "refs/reflog.h" #include "rerere.h" #include "revision.h" -#include "refs.h" +#include "refs/refs.h" #include "remote.h" #include "exec-cmd.h" #include "gettext.h" #include "hook.h" #include "setup.h" #include "trace2.h" -#include "worktree.h" +#include "refs/worktree.h" #define FAILED_RUN "failed to run %s"
builtin/history.c +1 -1
@@ -15,7 +15,7 @@#include "parse-options.h" #include "path.h" #include "read-cache.h" -#include "refs.h" +#include "refs/refs.h" #include "replay.h" #include "reset.h" #include "revision.h"
builtin/init-db.c +1 -1
@@ -10,7 +10,7 @@#include "gettext.h" #include "parse-options.h" #include "path.h" -#include "refs.h" +#include "refs/refs.h" #include "setup.h" #include "strbuf.h"
builtin/log.c +2 -2
@@ -13,7 +13,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/object-name.h" #include "odb/odb.h" #include "odb/streaming.h"
@@ -28,7 +28,7 @@#include "odb/oid-array.h" #include "odb/oidset.h" #include "odb/tag.h" -#include "reflog-walk.h" +#include "refs/reflog-walk.h" #include "patch-ids.h" #include "path.h" #include "shortlog.h"
builtin/ls-remote.c +1 -1
@@ -4,7 +4,7 @@#include "hex.h" #include "transport.h" #include "pkt-line.h" -#include "ref-filter.h" +#include "refs/ref-filter.h" #include "remote.h" #include "parse-options.h" #include "wildmatch.h"
builtin/merge.c +2 -2
@@ -26,8 +26,8 @@#include "hook.h" #include "diff.h" #include "diff-merges.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "odb/commit.h" #include "diffcore.h" #include "path.h"
builtin/name-rev.c +1 -1
@@ -8,7 +8,7 @@#include "config.h" #include "odb/commit.h" #include "odb/tag.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/object-name.h" #include "pager.h" #include "parse-options.h"
builtin/notes.c +2 -2
@@ -20,14 +20,14 @@#include "path.h" #include "pretty.h" -#include "refs.h" +#include "refs/refs.h" #include "exec-cmd.h" #include "run-command.h" #include "parse-options.h" #include "string-list.h" #include "notes-merge.h" #include "notes-utils.h" -#include "worktree.h" +#include "refs/worktree.h" #include "write-or-die.h" static const char *separator ="\n" ;
builtin/pack-objects.c +1 -1
@@ -21,7 +21,7 @@#include "list-objects-filter-options.h" #include "pack-objects.h" #include "progress.h" -#include "refs.h" +#include "refs/refs.h" #include "thread-utils.h" #include "pack-bitmap.h" #include "delta-islands.h"
builtin/pack-refs.c +1 -1
@@ -1,6 +1,6 @@#include "builtin.h" #include "gettext.h" -#include "pack-refs.h" +#include "refs/pack-refs.h" int cmd_pack_refs(int argc, const char **argv,
builtin/pull.c +2 -2
@@ -24,8 +24,8 @@#include "path.h" #include "read-cache-ll.h" #include "rebase.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "submodule.h" #include "submodule-config.h" #include "wt-status.h"
builtin/push.c +1 -1
@@ -12,7 +12,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "refspec.h" +#include "refs/refspec.h" #include "run-command.h" #include "remote.h" #include "transport.h"
builtin/rebase.c +1 -1
@@ -16,7 +16,7 @@#include "run-command.h" #include "strvec.h" #include "dir.h" -#include "refs.h" +#include "refs/refs.h" #include "config.h" #include "unpack-trees.h" #include "lockfile.h"
builtin/receive-pack.c +2 -2
@@ -27,7 +27,7 @@#include "parse-options.h" #include "pkt-line.h" #include "protocol.h" -#include "refs.h" +#include "refs/refs.h" #include "remote.h" #include "run-command.h" #include "server-info.h"
@@ -40,7 +40,7 @@#include "trace.h" #include "trace2.h" #include "version.h" -#include "worktree.h" +#include "refs/worktree.h" static const char *const receive_pack_usage[] = {N_ ("git receive-pack <git-dir>" ),
builtin/reflog.c +3 -3
@@ -8,9 +8,9 @@#include "revision.h" #include "reachable.h" #include "wildmatch.h" -#include "worktree.h" -#include "reflog.h" -#include "refs.h" +#include "refs/worktree.h" +#include "refs/reflog.h" +#include "refs/refs.h" #include "parse-options.h" #define BUILTIN_REFLOG_SHOW_USAGE \
builtin/refs.c +3 -3
@@ -1,11 +1,11 @@#include "builtin.h" #include "config.h" #include "odb/fsck.h" -#include "pack-refs.h" +#include "refs/pack-refs.h" #include "parse-options.h" -#include "refs.h" +#include "refs/refs.h" #include "strbuf.h" -#include "worktree.h" +#include "refs/worktree.h" #include "for-each-ref.h" #include "refs/refs-internal.h"
builtin/remote.c +2 -2
@@ -14,8 +14,8 @@#include "strbuf.h" #include "run-command.h" #include "rebase.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "odb/odb.h" #include "strvec.h" #include "commit-reach.h"
builtin/replace.c +1 -1
@@ -14,7 +14,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "refs.h" +#include "refs/refs.h" #include "parse-options.h" #include "path.h" #include "run-command.h"
builtin/replay.c +1 -1
@@ -9,7 +9,7 @@#include "hex.h" #include "odb/object-name.h" #include "parse-options.h" -#include "refs.h" +#include "refs/refs.h" #include "replay.h" #include "revision.h"
builtin/repo.c +2 -2
@@ -11,8 +11,8 @@#include "path-walk.h" #include "progress.h" #include "quote.h" -#include "ref-filter.h" -#include "refs.h" +#include "refs/ref-filter.h" +#include "refs/refs.h" #include "revision.h" #include "setup.h" #include "strbuf.h"
builtin/reset.c +1 -1
@@ -20,7 +20,7 @@#include "lockfile.h" #include "odb/object.h" #include "pretty.h" -#include "refs.h" +#include "refs/refs.h" #include "diff.h" #include "diffcore.h" #include "odb/tree.h"
builtin/rev-list.c +1 -1
@@ -21,7 +21,7 @@#include "graph.h" #include "bisect.h" #include "progress.h" -#include "reflog-walk.h" +#include "refs/reflog-walk.h" #include "odb/oidset.h" #include "odb/oidmap.h" #include "packfile.h"
builtin/rev-parse.c +1 -1
@@ -17,7 +17,7 @@#include "gettext.h" #include "odb/hash.h" #include "hex.h" -#include "refs.h" +#include "refs/refs.h" #include "quote.h" #include "odb/object-name.h" #include "parse-options.h"
builtin/show-branch.c +1 -1
@@ -8,7 +8,7 @@#include "odb/hash.h" #include "hex.h" #include "pretty.h" -#include "refs.h" +#include "refs/refs.h" #include "color.h" #include "strvec.h" #include "odb/object-name.h"
builtin/sparse-checkout.c +1 -1
@@ -19,7 +19,7 @@#include "quote.h" #include "setup.h" #include "sparse-index.h" -#include "worktree.h" +#include "refs/worktree.h" static const char *empty_base ="" ;
builtin/stash.c +3 -3
@@ -9,7 +9,7 @@#include "hex.h" #include "odb/object-name.h" #include "parse-options.h" -#include "refs.h" +#include "refs/refs.h" #include "lockfile.h" #include "cache-tree.h" #include "unpack-trees.h"
@@ -27,8 +27,8 @@#include "sparse-index.h" #include "log-tree.h" #include "diffcore.h" -#include "reflog.h" -#include "reflog-walk.h" +#include "refs/reflog.h" +#include "refs/reflog-walk.h" #include "add-interactive.h" #include "odb/oid-array.h" #include "odb/commit.h"
builtin/submodule--helper.c +2 -2
@@ -21,8 +21,8 @@#include "string-list.h" #include "run-command.h" #include "remote.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "revision.h" #include "diffcore.h" #include "diff.h"
builtin/symbolic-ref.c +1 -1
@@ -3,7 +3,7 @@#include "config.h" #include "environment.h" #include "gettext.h" -#include "refs.h" +#include "refs/refs.h" #include "parse-options.h" #include "strbuf.h"
builtin/tag.c +2 -2
@@ -16,7 +16,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h"
@@ -28,7 +28,7 @@#include "gpg-interface.h" #include "odb/oid-array.h" #include "column.h" -#include "ref-filter.h" +#include "refs/ref-filter.h" #include "date.h" #include "write-or-die.h" #include "odb/object-file-convert.h"
builtin/update-index.c +1 -1
@@ -20,7 +20,7 @@#include "odb/object-file.h" #include "odb/odb.h" #include "odb/transaction.h" -#include "refs.h" +#include "refs/refs.h" #include "resolve-undo.h" #include "parse-options.h" #include "pathspec.h"
builtin/update-ref.c +1 -1
@@ -7,7 +7,7 @@#include "gettext.h" #include "odb/hash.h" #include "hex.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/object-name.h" #include "parse-options.h" #include "quote.h"
builtin/var.c +1 -1
@@ -14,7 +14,7 @@#include "environment.h" #include "ident.h" #include "pager.h" -#include "refs.h" +#include "refs/refs.h" #include "path.h" #include "strbuf.h" #include "run-command.h"
builtin/verify-tag.c +1 -1
@@ -13,7 +13,7 @@#include "odb/object-name.h" #include "parse-options.h" #include "gpg-interface.h" -#include "ref-filter.h" +#include "refs/ref-filter.h" static const char *const verify_tag_usage[] = {N_ ("git verify-tag [-v | --verbose] [--format=<format>] [--raw] <tag>..." ),
builtin/worktree.c +2 -2
@@ -18,14 +18,14 @@#include "strvec.h" #include "branch.h" #include "read-cache-ll.h" -#include "refs.h" +#include "refs/refs.h" #include "remote.h" #include "run-command.h" #include "hook.h" #include "sigchain.h" #include "submodule.h" #include "utf8.h" -#include "worktree.h" +#include "refs/worktree.h" #include "quote.h" #define BUILTIN_WORKTREE_ADD_USAGE \
bundle-uri.c +1 -1
@@ -6,7 +6,7 @@#include "bundle.h" #include "copy.h" #include "gettext.h" -#include "refs.h" +#include "refs/refs.h" #include "run-command.h" #include "hashmap.h" #include "pkt-line.h"
bundle.c +1 -1
@@ -15,7 +15,7 @@#include "revision.h" #include "list-objects.h" #include "run-command.h" -#include "refs.h" +#include "refs/refs.h" #include "strvec.h" #include "list-objects-filter-options.h" #include "connected.h"
checkout.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "odb/object-name.h" #include "remote.h" -#include "refspec.h" +#include "refs/refspec.h" #include "repository.h" #include "checkout.h" #include "config.h"
combine-diff.c +1 -1
@@ -14,7 +14,7 @@#include "xdiff-interface.h" #include "xdiff/xmacros.h" #include "log-tree.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/tree.h" #include "userdiff.h" #include "odb/oid-array.h"
commit-graph.c +1 -1
@@ -10,7 +10,7 @@#include "packfile.h" #include "odb/commit.h" #include "odb/object.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/hash-lookup.h" #include "commit-graph.h" #include "odb/odb.h"
commit-reach.c +1 -1
@@ -6,7 +6,7 @@#include "decorate.h" #include "hex.h" #include "prio-queue.h" -#include "ref-filter.h" +#include "refs/ref-filter.h" #include "revision.h" #include "odb/tag.h" #include "commit-reach.h"
config.c +1 -1
@@ -30,7 +30,7 @@#include "path.h" #include "utf8.h" #include "color.h" -#include "refs.h" +#include "refs/refs.h" #include "setup.h" #include "strvec.h" #include "trace2.h"
connect.c +1 -1
@@ -7,7 +7,7 @@#include "hex.h" #include "pkt-line.h" #include "quote.h" -#include "refs.h" +#include "refs/refs.h" #include "run-command.h" #include "remote.h" #include "connect.h"
delta-islands.c +1 -1
@@ -11,7 +11,7 @@#include "odb/tree-walk.h" #include "diff.h" #include "progress.h" -#include "refs.h" +#include "refs/refs.h" #include "khash.h" #include "pack-bitmap.h" #include "pack-objects.h"
diff-lib.c +1 -1
@@ -17,7 +17,7 @@#include "revision.h" #include "cache-tree.h" #include "unpack-trees.h" -#include "refs.h" +#include "refs/refs.h" #include "repository.h" #include "submodule.h" #include "symlinks.h"
dir.c +1 -1
@@ -19,7 +19,7 @@#include "name-hash.h" #include "odb/object-file.h" #include "path.h" -#include "refs.h" +#include "refs/refs.h" #include "repository.h" #include "wildmatch.h" #include "pathspec.h"
environment.c +1 -1
@@ -26,7 +26,7 @@#include "odb/object-name.h" #include "repository.h" #include "config.h" -#include "refs.h" +#include "refs/refs.h" #include "fmt-merge-msg.h" #include "odb/commit.h" #include "strvec.h"
fetch-pack.c +1 -1
@@ -9,7 +9,7 @@#include "gettext.h" #include "hex.h" #include "lockfile.h" -#include "refs.h" +#include "refs/refs.h" #include "pkt-line.h" #include "odb/commit.h" #include "odb/tag.h"
fmt-merge-msg.c +1 -1
@@ -4,7 +4,7 @@#include "git-compat-util.h" #include "config.h" #include "environment.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/object-name.h" #include "odb/odb.h" #include "diff.h"
help.c +1 -1
@@ -15,7 +15,7 @@#include "string-list.h" #include "column.h" #include "version.h" -#include "refs.h" +#include "refs/refs.h" #include "parse-options.h" #include "prompt.h" #include "fsmonitor-ipc.h"
http-backend.c +1 -1
@@ -8,7 +8,7 @@#include "hex.h" #include "path.h" #include "repository.h" -#include "refs.h" +#include "refs/refs.h" #include "pkt-line.h" #include "odb/object.h" #include "odb/tag.h"
log-tree.c +2 -2
@@ -18,8 +18,8 @@#include "graph.h" #include "log-tree.h" #include "merge-ort.h" -#include "reflog-walk.h" -#include "refs.h" +#include "refs/reflog-walk.h" +#include "refs/refs.h" #include "odb/replace-object.h" #include "revision.h" #include "string-list.h"
merge-ort.c +1 -1
@@ -44,7 +44,7 @@#include "path.h" #include "promisor-remote.h" #include "read-cache-ll.h" -#include "refs.h" +#include "refs/refs.h" #include "revision.h" #include "sparse-index.h" #include "strmap.h"
meson.build +8 -8
@@ -406,7 +406,7 @@ libgit_sources = [ 'lockfile.c', 'log-tree.c', 'odb/loose.c', - 'ls-refs.c', + 'refs/ls-refs.c', 'mailinfo.c', 'mailmap.c', 'odb/match-trees.c',
@@ -451,7 +451,7 @@ libgit_sources = [ 'pack-check.c', 'pack-mtimes.c', 'pack-objects.c', - 'pack-refs.c', + 'refs/pack-refs.c', 'pack-revindex.c', 'pack-write.c', 'packfile.c',
@@ -483,17 +483,17 @@ libgit_sources = [ 'read-cache.c', 'rebase-interactive.c', 'rebase.c', - 'ref-filter.c', - 'reflog-walk.c', - 'reflog.c', - 'refs.c', + 'refs/ref-filter.c', + 'refs/reflog-walk.c', + 'refs/reflog.c', + 'refs/refs.c', 'refs/debug.c', 'refs/files-backend.c', 'refs/reftable-backend.c', 'refs/iterator.c', 'refs/packed-backend.c', 'refs/ref-cache.c', - 'refspec.c', + 'refs/refspec.c', 'reftable/basics.c', 'reftable/error.c', 'reftable/block.c',
@@ -579,7 +579,7 @@ libgit_sources = [ 'versioncmp.c', 'walker.c', 'wildmatch.c', - 'worktree.c', + 'refs/worktree.c', 'wrapper.c', 'write-or-die.c', 'ws.c',
midx-write.c +1 -1
@@ -12,7 +12,7 @@#include "run-command.h" #include "chunk-format.h" #include "pack-bitmap.h" -#include "refs.h" +#include "refs/refs.h" #include "revision.h" #include "list-objects.h" #include "path.h"
negotiator/default.c +1 -1
@@ -5,7 +5,7 @@#include "odb/commit.h" #include "../fetch-negotiator.h" #include "../prio-queue.h" -#include "../refs.h" +#include "refs/refs.h" #include "../repository.h" #include "odb/tag.h"
negotiator/skipping.c +1 -1
@@ -6,7 +6,7 @@#include "../fetch-negotiator.h" #include "../hex.h" #include "../prio-queue.h" -#include "../refs.h" +#include "refs/refs.h" #include "../repository.h" #include "odb/tag.h"
notes-cache.c +1 -1
@@ -7,7 +7,7 @@#include "pretty.h" #include "repository.h" #include "odb/commit.h" -#include "refs.h" +#include "refs/refs.h" #include "strbuf.h" static int notes_cache_match_validity(struct repository *r,
notes-merge.c +1 -1
@@ -5,7 +5,7 @@#include "advice.h" #include "odb/commit.h" #include "gettext.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h"
notes-utils.c +1 -1
@@ -5,7 +5,7 @@#include "odb/commit.h" #include "environment.h" #include "gettext.h" -#include "refs.h" +#include "refs/refs.h" #include "notes-utils.h" #include "strbuf.h"
notes.c +1 -1
@@ -13,7 +13,7 @@#include "strbuf.h" #include "odb/tree-walk.h" #include "string-list.h" -#include "refs.h" +#include "refs/refs.h" /* * Use a non-balancing simple 16-tree structure with struct int_node as
odb/commit.c +1 -1
@@ -22,7 +22,7 @@#include "odb/hash-lookup.h" #include "wt-status.h" #include "advice.h" -#include "refs.h" +#include "refs/refs.h" #include "commit-reach.h" #include "setup.h" #include "shallow.h"
odb/fsck.c +1 -1
@@ -14,7 +14,7 @@#include "odb/commit.h" #include "odb/tag.h" #include "odb/fsck.h" -#include "refs.h" +#include "refs/refs.h" #include "url.h" #include "utf8.h" #include "odb/oidset.h"
odb/object-name.c +1 -1
@@ -12,7 +12,7 @@#include "odb/commit.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "refs.h" +#include "refs/refs.h" #include "remote.h" #include "dir.h" #include "odb/odb.h"
odb/replace-object.c +1 -1
@@ -4,7 +4,7 @@#include "odb/oidmap.h" #include "odb/odb.h" #include "odb/replace-object.h" -#include "refs.h" +#include "refs/refs.h" #include "repository.h" #include "odb/commit.h"
pack-bitmap-write.c +1 -1
@@ -23,7 +23,7 @@#include "odb/oid-array.h" #include "config.h" #include "odb/alloc.h" -#include "refs.h" +#include "refs/refs.h" #include "strmap.h" #include "midx.h" #include "pack-revindex.h"
pack-bitmap.h +1 -1
@@ -5,7 +5,7 @@#include "khash.h" #include "pack.h" #include "pack-objects.h" -#include "refs.h" +#include "refs/refs.h" #include "string-list.h" struct commit ;
path.c +1 -1
@@ -9,7 +9,7 @@#include "strbuf.h" #include "string-list.h" #include "dir.h" -#include "worktree.h" +#include "refs/worktree.h" #include "setup.h" #include "submodule-config.h" #include "path.h"
pretty.c +1 -1
@@ -17,7 +17,7 @@#include "log-tree.h" #include "notes.h" #include "color.h" -#include "reflog-walk.h" +#include "refs/reflog-walk.h" #include "gpg-interface.h" #include "trailer.h" #include "run-command.h"
pseudo-merge.c +1 -1
@@ -8,7 +8,7 @@#include "strbuf.h" #include "config.h" #include "string-list.h" -#include "refs.h" +#include "refs/refs.h" #include "pack-bitmap.h" #include "odb/commit.h" #include "odb/alloc.h"
reachable.c +2 -2
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "gettext.h" #include "hex.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/commit.h" #include "odb/blob.h" #include "diff.h"
@@ -13,7 +13,7 @@#include "progress.h" #include "list-objects.h" #include "packfile.h" -#include "worktree.h" +#include "refs/worktree.h" #include "odb/object-file.h" #include "pack-bitmap.h" #include "pack-mtimes.h"
read-cache.c +1 -1
@@ -16,7 +16,7 @@#include "tempfile.h" #include "lockfile.h" #include "cache-tree.h" -#include "refs.h" +#include "refs/refs.h" #include "dir.h" #include "odb/object-file.h" #include "odb/odb.h"
refs/files-backend.c +2 -2
@@ -9,7 +9,7 @@#include "odb/hash.h" #include "../hex.h" #include "odb/fsck.h" -#include "../refs.h" +#include "refs/refs.h" #include "../repo-settings.h" #include "refs-internal.h" #include "ref-cache.h"
@@ -22,7 +22,7 @@#include "../dir.h" #include "../chdir-notify.h" #include "../setup.h" -#include "../worktree.h" +#include "refs/worktree.h" #include "../wrapper.h" #include "../write-or-die.h" #include "../revision.h"
refs/iterator.c +1 -1
@@ -6,7 +6,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "refs.h" +#include "refs/refs.h" #include "refs/refs-internal.h" #include "iterator.h"
refs/ls-refs.c renamed from ls-refs.c +2 -2
@@ -6,9 +6,9 @@#include "odb/hash.h" #include "hex.h" #include "repository.h" -#include "refs.h" +#include "refs/refs.h" #include "strvec.h" -#include "ls-refs.h" +#include "refs/ls-refs.h" #include "pkt-line.h" #include "config.h" #include "string-list.h"
refs/ls-refs.h renamed from ls-refs.h +0 -0
refs/pack-refs.c renamed from pack-refs.c +2 -2
@@ -1,9 +1,9 @@#include "builtin.h" #include "config.h" #include "environment.h" -#include "pack-refs.h" +#include "refs/pack-refs.h" #include "parse-options.h" -#include "refs.h" +#include "refs/refs.h" #include "revision.h" int pack_refs_core(int argc,
refs/pack-refs.h renamed from pack-refs.h +0 -0
refs/packed-backend.c +2 -2
@@ -7,14 +7,14 @@#include "../gettext.h" #include "odb/hash.h" #include "../hex.h" -#include "../refs.h" +#include "refs/refs.h" #include "refs-internal.h" #include "packed-backend.h" #include "../iterator.h" #include "../lockfile.h" #include "../chdir-notify.h" #include "../statinfo.h" -#include "../worktree.h" +#include "refs/worktree.h" #include "../wrapper.h" #include "../write-or-die.h" #include "../trace2.h"
refs/ref-cache.c +1 -1
@@ -1,6 +1,6 @@#include "../git-compat-util.h" #include "odb/hash.h" -#include "../refs.h" +#include "refs/refs.h" #include "../repository.h" #include "refs-internal.h" #include "ref-cache.h"
refs/ref-filter.c renamed from ref-filter.c +3 -3
@@ -9,7 +9,7 @@#include "hex.h" #include "parse-options.h" #include "run-command.h" -#include "refs.h" +#include "refs/refs.h" #include "wildmatch.h" #include "odb/object-name.h" #include "odb/odb.h"
@@ -23,7 +23,7 @@#include "color.h" #include "odb/tag.h" #include "quote.h" -#include "ref-filter.h" +#include "refs/ref-filter.h" #include "revision.h" #include "utf8.h" #include "versioncmp.h"
@@ -31,7 +31,7 @@#include "wt-status.h" #include "odb/commit-slab.h" #include "commit-reach.h" -#include "worktree.h" +#include "refs/worktree.h" #include "hashmap.h" static struct ref_msg {
refs/ref-filter.h renamed from ref-filter.h +0 -0
refs/reflog-walk.c renamed from reflog-walk.c +2 -2
@@ -2,12 +2,12 @@#include "git-compat-util.h" #include "odb/commit.h" -#include "refs.h" +#include "refs/refs.h" #include "diff.h" #include "repository.h" #include "revision.h" #include "string-list.h" -#include "reflog-walk.h" +#include "refs/reflog-walk.h" struct complete_reflogs {char *ref;
refs/reflog-walk.h renamed from reflog-walk.h +0 -0
refs/reflog.c renamed from reflog.c +2 -2
@@ -7,8 +7,8 @@#include "gettext.h" #include "parse-options.h" #include "odb/odb.h" -#include "reflog.h" -#include "refs.h" +#include "refs/reflog.h" +#include "refs/refs.h" #include "revision.h" #include "odb/tree.h" #include "odb/tree-walk.h"
refs/reflog.h renamed from reflog.h +1 -1
@@ -1,6 +1,6 @@#ifndef REFLOG_H #define REFLOG_H -#include "refs.h" +#include "refs/refs.h" #define REFLOG_EXPIRE_TOTAL (1 << 0)#define REFLOG_EXPIRE_UNREACH (1 << 1)
refs/refs-internal.h +1 -1
@@ -1,7 +1,7 @@#ifndef REFS_REFS_INTERNAL_H #define REFS_REFS_INTERNAL_H -#include "refs.h" +#include "refs/refs.h" #include "iterator.h" #include "string-list.h"
refs/refs.c renamed from refs.c +2 -2
@@ -12,7 +12,7 @@#include "hex.h" #include "lockfile.h" #include "iterator.h" -#include "refs.h" +#include "refs/refs.h" #include "refs/refs-internal.h" #include "hook.h" #include "odb/object-name.h"
@@ -20,7 +20,7 @@#include "odb/object.h" #include "path.h" #include "submodule.h" -#include "worktree.h" +#include "refs/worktree.h" #include "strvec.h" #include "repo-settings.h" #include "setup.h"
refs/refs.h renamed from refs.h +0 -0
refs/refspec.c renamed from refspec.c +2 -2
@@ -6,8 +6,8 @@#include "hex.h" #include "string-list.h" #include "strvec.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "remote.h" #include "strbuf.h"
refs/refspec.h renamed from refspec.h +0 -0
refs/reftable-backend.c +2 -2
@@ -12,7 +12,7 @@#include "../iterator.h" #include "../parse.h" #include "../path.h" -#include "../refs.h" +#include "refs/refs.h" #include "../reftable/reftable-basics.h" #include "../reftable/reftable-error.h" #include "../reftable/reftable-fsck.h"
@@ -23,7 +23,7 @@#include "../setup.h" #include "../strmap.h" #include "../trace2.h" -#include "../worktree.h" +#include "refs/worktree.h" #include "../write-or-die.h" #include "refs-internal.h"
refs/worktree.c renamed from worktree.c +2 -2
@@ -6,10 +6,10 @@#include "gettext.h" #include "path.h" #include "repository.h" -#include "refs.h" +#include "refs/refs.h" #include "setup.h" #include "strbuf.h" -#include "worktree.h" +#include "refs/worktree.h" #include "dir.h" #include "wt-status.h" #include "config.h"
refs/worktree.h renamed from worktree.h +1 -1
@@ -1,7 +1,7 @@#ifndef WORKTREE_H #define WORKTREE_H -#include "refs.h" +#include "refs/refs.h" struct strbuf ;
remote.c +2 -2
@@ -10,8 +10,8 @@#include "remote.h" #include "url.h" #include "urlmatch.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "odb/object-name.h" #include "odb/odb.h" #include "path.h"
remote.h +1 -1
@@ -3,7 +3,7 @@#include "odb/hash.h" #include "hashmap.h" -#include "refspec.h" +#include "refs/refspec.h" #include "string-list.h" #include "strvec.h"
repack-midx.c +1 -1
@@ -8,7 +8,7 @@#include "odb/oidset.h" #include "pack-bitmap.h" #include "path.h" -#include "refs.h" +#include "refs/refs.h" #include "run-command.h" #include "tempfile.h" #include "trace2.h"
replay.c +1 -1
@@ -5,7 +5,7 @@#include "hex.h" #include "merge-ort.h" #include "odb/object-name.h" -#include "refs.h" +#include "refs/refs.h" #include "replay.h" #include "revision.h" #include "sequencer.h"
repository.c +1 -1
@@ -17,7 +17,7 @@#include "sparse-index.h" #include "trace2.h" #include "promisor-remote.h" -#include "refs.h" +#include "refs/refs.h" /* * We do not define `USE_THE_REPOSITORY_VARIABLE` in this file because we do
reset.c +1 -1
@@ -4,7 +4,7 @@#include "hex.h" #include "lockfile.h" #include "odb/object-name.h" -#include "refs.h" +#include "refs/refs.h" #include "reset.h" #include "odb/tree-walk.h" #include "odb/tree.h"
revision.c +3 -3
@@ -16,12 +16,12 @@#include "odb/commit.h" #include "diff.h" #include "diff-merges.h" -#include "refs.h" +#include "refs/refs.h" #include "revision.h" #include "repository.h" #include "graph.h" #include "grep.h" -#include "reflog-walk.h" +#include "refs/reflog-walk.h" #include "patch-ids.h" #include "decorate.h" #include "string-list.h"
@@ -32,7 +32,7 @@#include "cache-tree.h" #include "bisect.h" #include "packfile.h" -#include "worktree.h" +#include "refs/worktree.h" #include "path.h" #include "read-cache.h" #include "setup.h"
scalar.c +1 -1
@@ -13,7 +13,7 @@#include "simple-ipc.h" #include "fsmonitor-ipc.h" #include "fsmonitor-settings.h" -#include "refs.h" +#include "refs/refs.h" #include "dir.h" #include "packfile.h" #include "help.h"
sequencer.c +1 -1
@@ -29,7 +29,7 @@#include "merge.h" #include "merge-ort.h" #include "merge-ort-wrappers.h" -#include "refs.h" +#include "refs/refs.h" #include "sparse-index.h" #include "strvec.h" #include "quote.h"
serve.c +1 -1
@@ -4,7 +4,7 @@#include "odb/hash.h" #include "pkt-line.h" #include "version.h" -#include "ls-refs.h" +#include "refs/ls-refs.h" #include "protocol-caps.h" #include "serve.h" #include "upload-pack.h"
server-info.c +1 -1
@@ -4,7 +4,7 @@#include "dir.h" #include "hex.h" #include "repository.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/object.h" #include "odb/commit.h" #include "odb/tag.h"
setup.c +2 -2
@@ -9,7 +9,7 @@#include "hex.h" #include "odb/object-file.h" #include "odb/object-name.h" -#include "refs.h" +#include "refs/refs.h" #include "repository.h" #include "config.h" #include "dir.h"
@@ -22,7 +22,7 @@#include "quote.h" #include "trace.h" #include "trace2.h" -#include "worktree.h" +#include "refs/worktree.h" enum allowed_bare_repo {ALLOWED_BARE_REPO_EXPLICIT =0 ,
setup.h +1 -1
@@ -1,7 +1,7 @@#ifndef SETUP_H #define SETUP_H -#include "refs.h" +#include "refs/refs.h" #include "string-list.h" int is_inside_git_dir (struct repository *repo);
shallow.c +1 -1
@@ -9,7 +9,7 @@#include "odb/commit.h" #include "odb/tag.h" #include "pkt-line.h" -#include "refs.h" +#include "refs/refs.h" #include "odb/oid-array.h" #include "path.h" #include "diff.h"
submodule.c +2 -2
@@ -16,14 +16,14 @@#include "revision.h" #include "run-command.h" #include "diffcore.h" -#include "refs.h" +#include "refs/refs.h" #include "string-list.h" #include "odb/oid-array.h" #include "strvec.h" #include "thread-utils.h" #include "path.h" #include "remote.h" -#include "worktree.h" +#include "refs/worktree.h" #include "parse-options.h" #include "odb/object-file.h" #include "odb/object-name.h"
t/helper/test-reach.c +1 -1
@@ -6,7 +6,7 @@#include "gettext.h" #include "hex.h" #include "odb/object-name.h" -#include "ref-filter.h" +#include "refs/ref-filter.h" #include "setup.h" #include "string-list.h" #include "odb/tag.h"
t/helper/test-ref-store.c +2 -2
@@ -2,9 +2,9 @@#include "test-tool.h" #include "hex.h" -#include "refs.h" +#include "refs/refs.h" #include "setup.h" -#include "worktree.h" +#include "refs/worktree.h" #include "odb/odb.h" #include "path.h" #include "repository.h"
transport-helper.c +2 -2
@@ -15,8 +15,8 @@#include "thread-utils.h" #include "sigchain.h" #include "strvec.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "transport-internal.h" #include "protocol.h" #include "packfile.h"
transport.c +2 -2
@@ -15,8 +15,8 @@#include "send-pack.h" #include "bundle.h" #include "gettext.h" -#include "refs.h" -#include "refspec.h" +#include "refs/refs.h" +#include "refs/refspec.h" #include "branch.h" #include "url.h" #include "submodule.h"
unpack-trees.c +1 -1
@@ -16,7 +16,7 @@#include "cache-tree.h" #include "unpack-trees.h" #include "progress.h" -#include "refs.h" +#include "refs/refs.h" #include "attr.h" #include "read-cache.h" #include "split-index.h"
upload-pack.c +1 -1
@@ -6,7 +6,7 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "refs.h" +#include "refs/refs.h" #include "pkt-line.h" #include "sideband.h" #include "repository.h"
walker.c +1 -1
@@ -12,7 +12,7 @@#include "odb/tree-walk.h" #include "odb/tag.h" #include "odb/blob.h" -#include "refs.h" +#include "refs/refs.h" #include "progress.h" #include "prio-queue.h"
wt-status.c +2 -2
@@ -21,7 +21,7 @@#include "run-command.h" #include "strvec.h" #include "remote.h" -#include "refs.h" +#include "refs/refs.h" #include "submodule.h" #include "column.h" #include "read-cache.h"
@@ -31,7 +31,7 @@#include "trace2.h" #include "odb/tree.h" #include "utf8.h" -#include "worktree.h" +#include "refs/worktree.h" #include "lockfile.h" #include "sequencer.h" #include "fsmonitor-settings.h"
Signature · 1 line
2.54.0
RFC PATCH 9/14 pack: gather the pack sources under pack/
In reply to Michael MontalboMove the 27 pack C sources and 18 headers into pack/ 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 | 90 +++++++++---------- Makefile | 56 ++++++------ apply.c | 2 +- blame.c | 4 +- builtin/backfill.c | 2 +- builtin/cat-file.c | 2 +- builtin/clone.c | 2 +- builtin/commit-graph.c | 2 +- builtin/commit.c | 2 +- builtin/count-objects.c | 2 +- builtin/fast-import.c | 6 +- builtin/fetch.c | 2 +- builtin/fsck.c | 8 +- builtin/gc.c | 4 +- builtin/index-pack.c | 8 +- builtin/last-modified.c | 4 +- builtin/merge.c | 2 +- builtin/multi-pack-index.c | 2 +- builtin/name-rev.c | 2 +- builtin/pack-objects.c | 20 ++--- builtin/pack-redundant.c | 2 +- builtin/prune-packed.c | 2 +- builtin/prune.c | 4 +- builtin/receive-pack.c | 6 +- builtin/reflog.c | 2 +- builtin/repack.c | 10 +-- builtin/rev-list.c | 4 +- builtin/show-index.c | 2 +- builtin/unpack-objects.c | 6 +- builtin/update-server-info.c | 2 +- commit-reach.c | 2 +- connected.c | 2 +- diagnose.c | 2 +- diff.c | 4 +- fetch-pack.c | 6 +- http-backend.c | 2 +- http-push.c | 2 +- http-walker.c | 2 +- http.c | 4 +- line-log.c | 2 +- list-objects.c | 2 +- meson.build | 54 +++++------ odb/commit.c | 2 +- odb/fsck.c | 2 +- odb/object-file.c | 4 +- odb/object-name.c | 2 +- odb/object.c | 2 +- odb/odb.c | 6 +- odb/source-files.c | 6 +- odb/source-packed.c | 6 +- odb/source-packed.h | 2 +- odb/source.c | 2 +- odb/tag.c | 2 +- oss-fuzz/fuzz-commit-graph.c | 2 +- oss-fuzz/fuzz-pack-headers.c | 2 +- oss-fuzz/fuzz-pack-idx.c | 2 +- bloom.c => pack/bloom.c | 4 +- bloom.h => pack/bloom.h | 0 chunk-format.c => pack/chunk-format.c | 2 +- chunk-format.h => pack/chunk-format.h | 0 commit-graph.c => pack/commit-graph.c | 8 +- commit-graph.h => pack/commit-graph.h | 0 delta-islands.c => pack/delta-islands.c | 8 +- delta-islands.h => pack/delta-islands.h | 0 delta.h => pack/delta.h | 0 diff-delta.c => pack/diff-delta.c | 2 +- midx-write.c => pack/midx-write.c | 10 +-- midx.c => pack/midx.c | 10 +-- midx.h => pack/midx.h | 0 .../pack-bitmap-write.c | 12 +-- pack-bitmap.c => pack/pack-bitmap.c | 14 +-- pack-bitmap.h => pack/pack-bitmap.h | 4 +- pack-check.c => pack/pack-check.c | 4 +- pack-mtimes.c => pack/pack-mtimes.c | 4 +- pack-mtimes.h => pack/pack-mtimes.h | 0 pack-objects.c => pack/pack-objects.c | 6 +- pack-objects.h => pack/pack-objects.h | 4 +- pack-revindex.c => pack/pack-revindex.c | 6 +- pack-revindex.h => pack/pack-revindex.h | 0 pack-write.c => pack/pack-write.c | 10 +-- pack.h => pack/pack.h | 0 packfile-list.c => pack/packfile-list.c | 4 +- packfile-list.h => pack/packfile-list.h | 0 packfile.c => pack/packfile.c | 14 +-- packfile.h => pack/packfile.h | 2 +- patch-delta.c => pack/patch-delta.c | 2 +- prune-packed.c => pack/prune-packed.c | 4 +- prune-packed.h => pack/prune-packed.h | 0 pseudo-merge.c => pack/pseudo-merge.c | 4 +- pseudo-merge.h => pack/pseudo-merge.h | 0 reachable.c => pack/reachable.c | 8 +- reachable.h => pack/reachable.h | 0 repack-cruft.c => pack/repack-cruft.c | 4 +- repack-filtered.c => pack/repack-filtered.c | 2 +- repack-geometry.c => pack/repack-geometry.c | 6 +- repack-midx.c => pack/repack-midx.c | 6 +- repack-promisor.c => pack/repack-promisor.c | 6 +- repack.c => pack/repack.c | 6 +- repack.h => pack/repack.h | 0 server-info.c => pack/server-info.c | 4 +- server-info.h => pack/server-info.h | 0 path.c | 2 +- promisor-remote.c | 2 +- repo-settings.c | 4 +- revision.c | 6 +- run-command.c | 2 +- scalar.c | 2 +- t/helper/test-bitmap.c | 4 +- t/helper/test-bloom.c | 2 +- t/helper/test-delta.c | 2 +- t/helper/test-find-pack.c | 2 +- t/helper/test-name-hash.c | 2 +- t/helper/test-pack-deltas.c | 6 +- t/helper/test-pack-mtimes.c | 4 +- t/helper/test-read-graph.c | 4 +- t/helper/test-read-midx.c | 8 +- t/helper/test-repository.c | 2 +- t/helper/test-synthesize.c | 2 +- transport-helper.c | 2 +- upload-pack.c | 2 +- 120 files changed, 314 insertions(+), 314 deletions(-) rename bloom.c => pack/bloom.c (99%) rename bloom.h => pack/bloom.h (100%) rename chunk-format.c => pack/chunk-format.c (99%) rename chunk-format.h => pack/chunk-format.h (100%) rename commit-graph.c => pack/commit-graph.c (99%) rename commit-graph.h => pack/commit-graph.h (100%) rename delta-islands.c => pack/delta-islands.c (99%) rename delta-islands.h => pack/delta-islands.h (100%) rename delta.h => pack/delta.h (100%) rename diff-delta.c => pack/diff-delta.c (99%) rename midx-write.c => pack/midx-write.c (99%) rename midx.c => pack/midx.c (99%) rename midx.h => pack/midx.h (100%) rename pack-bitmap-write.c => pack/pack-bitmap-write.c (99%) rename pack-bitmap.c => pack/pack-bitmap.c (99%) rename pack-bitmap.h => pack/pack-bitmap.h (99%) rename pack-check.c => pack/pack-check.c (99%) rename pack-mtimes.c => pack/pack-mtimes.c (98%) rename pack-mtimes.h => pack/pack-mtimes.h (100%) rename pack-objects.c => pack/pack-objects.c (98%) rename pack-objects.h => pack/pack-objects.h (99%) rename pack-revindex.c => pack/pack-revindex.c (99%) rename pack-revindex.h => pack/pack-revindex.h (100%) rename pack-write.c => pack/pack-write.c (99%) rename pack.h => pack/pack.h (100%) rename packfile-list.c => pack/packfile-list.c (96%) rename packfile-list.h => pack/packfile-list.h (100%) rename packfile.c => pack/packfile.c (99%) rename packfile.h => pack/packfile.h (99%) rename patch-delta.c => pack/patch-delta.c (98%) rename prune-packed.c => pack/prune-packed.c (94%) rename prune-packed.h => pack/prune-packed.h (100%) rename pseudo-merge.c => pack/pseudo-merge.c (99%) rename pseudo-merge.h => pack/pseudo-merge.h (100%) rename reachable.c => pack/reachable.c (98%) rename reachable.h => pack/reachable.h (100%) rename repack-cruft.c => pack/repack-cruft.c (98%) rename repack-filtered.c => pack/repack-filtered.c (98%) rename repack-geometry.c => pack/repack-geometry.c (99%) rename repack-midx.c => pack/repack-midx.c (99%) rename repack-promisor.c => pack/repack-promisor.c (98%) rename repack.c => pack/repack.c (99%) rename repack.h => pack/repack.h (100%) rename server-info.c => pack/server-info.c (99%) rename server-info.h => pack/server-info.h (100%)
.gitorganize +45 -45
@@ -45,8 +45,6 @@ bisect.c component=revision role=lib prefix=bisect includes=odb:5,revision:5,set 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 -bloom.c component=pack role=lib prefix=bloom includes=odb:4,diff:2,pack:2,setup:2 cochange=pack:38,revision:25,diff:15,odb:6,index:2 -bloom.h component=pack role=header prefix=bloom cochange=pack:28,revision:12,odb: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
@@ -60,15 +58,11 @@ chdir-notify.c component=? role=lib prefix=chdir-notify includes=revision:1 coch 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 -chunk-format.c component=pack role=lib prefix=chunk-format includes=odb:1,pack:1 cochange=pack:20,odb:1,transport:1 -chunk-format.h component=pack role=header prefix=chunk-format includes=odb:1 cochange=pack:15,odb:2,setup:1,transport: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 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-graph.c component=pack role=lib prefix=commit-graph includes=odb:9,pack:4,setup:2,refs:1,revision:1 cochange=pack:206,odb:125,revision:47,transport:34,setup:22 -commit-graph.h component=pack role=header prefix=commit-graph includes=odb:2 cochange=pack:92,odb:14,setup:9,revision:8,transport:5 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
@@ -95,12 +89,8 @@ date.c component=? role=lib prefix=date cochange=revision:17,odb:16,refs:14,setu 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 -delta-islands.c component=pack role=lib prefix=delta-islands includes=odb:6,pack:4,diff:1,refs:1,setup:1 cochange=pack:20,odb:17,revision:7,transport:7,diff:5 -delta-islands.h component=pack role=header prefix=delta-islands cochange=pack:6 -delta.h component=pack role=header prefix=diff-delta cochange=pack:27,odb:19,diff:5,transport:3,convert: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-delta.c component=pack role=lib prefix=diff-delta includes=pack:1 cochange=pack:24,diff:7,index:2,odb:2,transport:2 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
@@ -218,9 +208,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 -midx-write.c component=pack role=lib prefix=midx-write includes=pack:5,odb:2,revision:2,refs:1,setup:1 cochange=pack:100,odb:20,refs:7,transport:6,setup:4 -midx.c component=pack role=lib prefix=midx includes=pack:5,index:1,odb:1,setup:1 cochange=pack:220,odb:34,transport:11,index:6,setup:4 -midx.h component=pack role=header prefix=midx cochange=pack:134,odb:5,setup:2,transport:2,refs: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
@@ -280,22 +267,51 @@ odb/tree-walk.c component=odb role=lib prefix=tree-walk includes=odb:4,index:3,s odb/tree-walk.h component=odb role=header prefix=tree-walk includes=odb:1 cochange=odb:64,diff:23,index:23,revision:21,notes:7 odb/tree.c component=odb role=lib prefix=tree includes=odb:6,setup:2 cochange=odb:212,revision:45,index:36,pack:25,transport:21 odb/tree.h component=odb role=header prefix=tree includes=odb:1 cochange=odb:75,revision:12,archive:8,index:6,pack:5 -pack-bitmap-write.c component=pack role=lib prefix=pack-bitmap-write includes=odb:7,pack:6,revision:2,setup:2,diff:1 cochange=pack:132,odb:32,revision:27,transport:10,diff:4 -pack-bitmap.c component=pack role=lib prefix=pack-bitmap includes=pack:7,odb:3,revision:3,setup:2,diff:1 cochange=pack:232,revision:30,odb:18,transport:14,refs:7 -pack-bitmap.h component=pack role=header prefix=pack-bitmap includes=pack:2,refs:1 cochange=pack:117,refs:5,odb:2,setup:2,revision:1 -pack-check.c component=pack role=lib prefix=pack-check includes=odb:2,pack:2,setup:2 cochange=pack:59,odb:26,transport:23,diff:11,index:10 -pack-mtimes.c component=pack role=lib prefix=pack-mtimes includes=pack:2,odb:1 cochange=pack:10,odb:3,transport:2,notes:1 -pack-mtimes.h component=pack role=header prefix=pack-mtimes cochange=pack:4,odb:2,setup:1,transport:1 -pack-objects.c component=pack role=lib prefix=pack-objects includes=pack:3,odb:1,setup:1 cochange=pack:66,diff:17,odb:16,transport:9,index:5 -pack-objects.h component=pack role=header prefix=pack-objects includes=pack:2,odb:1 cochange=pack:44,setup:5,odb:1 -pack-revindex.c component=pack role=lib prefix=pack-revindex includes=pack:3,odb:1,setup:1 cochange=pack:94,odb:7,index:6,transport:5,setup:4 -pack-revindex.h component=pack role=header prefix=pack-revindex cochange=pack:32,odb:1 -pack-write.c component=pack role=lib prefix=pack-write includes=pack:5,setup:2,odb:1,transport:1 cochange=pack:88,odb:21,transport:21,setup:14,index:10 -pack.h component=pack role=header prefix=pack-write includes=odb:1 cochange=pack:72,odb:13,transport:9,setup:5,revision:1 -packfile-list.c component=pack role=lib prefix=packfile includes=pack:2 cochange=pack:3 -packfile-list.h component=pack role=header prefix=packfile cochange=pack:3 -packfile.c component=pack role=lib prefix=packfile includes=odb:8,pack:7,setup:2,index:1,revision:1 cochange=pack:317,odb:134,transport:52,revision:36,index:27 -packfile.h component=pack role=header prefix=packfile includes=odb:3,pack:1,revision:1,setup:1 cochange=pack:234,odb:66,transport:32,revision:9,setup:7 +pack/bloom.c component=pack role=lib prefix=bloom includes=odb:4,diff:2,pack:2,setup:2 cochange=pack:38,revision:25,diff:15,odb:6,index:2 +pack/bloom.h component=pack role=header prefix=bloom cochange=pack:28,revision:12,odb:1 +pack/chunk-format.c component=pack role=lib prefix=chunk-format includes=odb:1,pack:1 cochange=pack:20,odb:1,transport:1 +pack/chunk-format.h component=pack role=header prefix=chunk-format includes=odb:1 cochange=pack:15,odb:2,setup:1,transport:1 +pack/commit-graph.c component=pack role=lib prefix=commit-graph includes=odb:9,pack:4,setup:2,refs:1,revision:1 cochange=pack:206,odb:125,revision:47,transport:34,setup:22 +pack/commit-graph.h component=pack role=header prefix=commit-graph includes=odb:2 cochange=pack:92,odb:14,setup:9,revision:8,transport:5 +pack/delta-islands.c component=pack role=lib prefix=delta-islands includes=odb:6,pack:4,diff:1,refs:1,setup:1 cochange=pack:20,odb:17,revision:7,transport:7,diff:5 +pack/delta-islands.h component=pack role=header prefix=delta-islands cochange=pack:6 +pack/delta.h component=pack role=header prefix=diff-delta cochange=pack:27,odb:19,diff:5,transport:3,convert:1 +pack/diff-delta.c component=pack role=lib prefix=diff-delta includes=pack:1 cochange=pack:24,diff:7,index:2,odb:2,transport:2 +pack/midx-write.c component=pack role=lib prefix=midx-write includes=pack:5,odb:2,revision:2,refs:1,setup:1 cochange=pack:100,odb:20,refs:7,transport:6,setup:4 +pack/midx.c component=pack role=lib prefix=midx includes=pack:5,index:1,odb:1,setup:1 cochange=pack:220,odb:34,transport:11,index:6,setup:4 +pack/midx.h component=pack role=header prefix=midx cochange=pack:134,odb:5,setup:2,transport:2,refs:1 +pack/pack-bitmap-write.c component=pack role=lib prefix=pack-bitmap-write includes=odb:7,pack:6,revision:2,setup:2,diff:1 cochange=pack:132,odb:32,revision:27,transport:10,diff:4 +pack/pack-bitmap.c component=pack role=lib prefix=pack-bitmap includes=pack:7,odb:3,revision:3,setup:2,diff:1 cochange=pack:232,revision:30,odb:18,transport:14,refs:7 +pack/pack-bitmap.h component=pack role=header prefix=pack-bitmap includes=pack:2,refs:1 cochange=pack:117,refs:5,odb:2,setup:2,revision:1 +pack/pack-check.c component=pack role=lib prefix=pack-check includes=odb:2,pack:2,setup:2 cochange=pack:59,odb:26,transport:23,diff:11,index:10 +pack/pack-mtimes.c component=pack role=lib prefix=pack-mtimes includes=pack:2,odb:1 cochange=pack:10,odb:3,transport:2,notes:1 +pack/pack-mtimes.h component=pack role=header prefix=pack-mtimes cochange=pack:4,odb:2,setup:1,transport:1 +pack/pack-objects.c component=pack role=lib prefix=pack-objects includes=pack:3,odb:1,setup:1 cochange=pack:66,diff:17,odb:16,transport:9,index:5 +pack/pack-objects.h component=pack role=header prefix=pack-objects includes=pack:2,odb:1 cochange=pack:44,setup:5,odb:1 +pack/pack-revindex.c component=pack role=lib prefix=pack-revindex includes=pack:3,odb:1,setup:1 cochange=pack:94,odb:7,index:6,transport:5,setup:4 +pack/pack-revindex.h component=pack role=header prefix=pack-revindex cochange=pack:32,odb:1 +pack/pack-write.c component=pack role=lib prefix=pack-write includes=pack:5,setup:2,odb:1,transport:1 cochange=pack:88,odb:21,transport:21,setup:14,index:10 +pack/pack.h component=pack role=header prefix=pack-write includes=odb:1 cochange=pack:72,odb:13,transport:9,setup:5,revision:1 +pack/packfile-list.c component=pack role=lib prefix=packfile includes=pack:2 cochange=pack:3 +pack/packfile-list.h component=pack role=header prefix=packfile cochange=pack:3 +pack/packfile.c component=pack role=lib prefix=packfile includes=odb:8,pack:7,setup:2,index:1,revision:1 cochange=pack:317,odb:134,transport:52,revision:36,index:27 +pack/packfile.h component=pack role=header prefix=packfile includes=odb:3,pack:1,revision:1,setup:1 cochange=pack:234,odb:66,transport:32,revision:9,setup:7 +pack/patch-delta.c component=pack role=lib prefix=patch-delta includes=pack:1 cochange=pack:23,diff:2,odb:2,transport:2,convert:1 +pack/prune-packed.c component=pack role=lib prefix=environment includes=pack:2,odb:1,setup:1 cochange=pack:13,odb:7,setup:5,diff:3,revision:3 +pack/prune-packed.h component=pack role=header prefix=? cochange=pack:1 +pack/pseudo-merge.c component=pack role=lib prefix=pseudo-merge includes=odb:3,pack:2,refs:1,setup:1 cochange=pack:21,refs:3 +pack/pseudo-merge.h component=pack role=header prefix=pseudo-merge cochange=pack:17 +pack/reachable.c component=pack role=lib prefix=reachable includes=pack:4,odb:3,refs:2,revision:2,diff:1 cochange=odb:60,pack:57,revision:47,transport:17,refs:14 +pack/reachable.h component=pack role=header prefix=prune cochange=pack:5 +pack/repack-cruft.c component=pack role=lib prefix=repack includes=pack:2,setup:1 cochange=pack:8,transport:2,odb:1 +pack/repack-filtered.c component=pack role=lib prefix=repack includes=pack:1,setup:1 cochange=pack:1 +pack/repack-geometry.c component=pack role=lib prefix=repack includes=pack:3,setup:1 cochange=pack:25,transport:2,odb:1 +pack/repack-midx.c component=pack role=lib prefix=repack includes=odb:3,pack:3,refs:1 cochange=pack:23,refs:3,setup:2,merge:1,odb:1 +pack/repack-promisor.c component=pack role=lib prefix=repack-promisor includes=pack:3,setup:1 cochange=pack:8,odb:3,revision:2 +pack/repack.c component=pack role=lib prefix=repack includes=pack:3,index:1,odb:1,setup:1 cochange=pack:31,transport:2,odb:1 +pack/repack.h component=pack role=header prefix=repack includes=revision:1 cochange=pack:28 +pack/server-info.c component=pack role=lib prefix=server-info includes=odb:5,pack:2,index:1,refs:1,setup:1 cochange=pack:40,transport:34,odb:33,setup:13,refs:10 +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
@@ -305,7 +321,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-delta.c component=pack role=lib prefix=patch-delta includes=pack:1 cochange=pack:23,diff:2,odb:2,transport: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
@@ -332,16 +347,10 @@ protocol-caps.c component=transport role=lib prefix=protocol-caps includes=odb:3 protocol-caps.h component=transport role=header prefix=protocol-caps cochange=transport:6,refs:2 protocol.c component=transport role=lib prefix=protocol includes=setup:2,transport:1 cochange=transport:21,index:4,setup:4,refs:2,diff:1 protocol.h component=transport role=header prefix=protocol cochange=transport:5 -prune-packed.c component=pack role=lib prefix=environment includes=pack:2,odb:1,setup:1 cochange=pack:13,odb:7,setup:5,diff:3,revision:3 -prune-packed.h component=pack role=header prefix=? cochange=pack:1 -pseudo-merge.c component=pack role=lib prefix=pseudo-merge includes=odb:3,pack:2,refs:1,setup:1 cochange=pack:21,refs:3 -pseudo-merge.h component=pack role=header prefix=pseudo-merge cochange=pack:17 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 -reachable.c component=pack role=lib prefix=reachable includes=pack:4,odb:3,refs:2,revision:2,diff:1 cochange=odb:60,pack:57,revision:47,transport:17,refs:14 -reachable.h component=pack role=header prefix=prune cochange=pack: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
@@ -368,13 +377,6 @@ refs/worktree.h component=refs role=header prefix=worktree includes=refs:1 cocha remote-curl.c component=transport role=lib prefix=remote-curl includes=transport:9,setup:3,odb:1 cochange=transport:226,diff:9,revision:6,setup:5,archive:4 remote.c component=transport role=lib prefix=remote includes=odb:3,setup:3,transport:3,refs:2,revision:2 cochange=transport:272,refs:91,revision:56,index:51,odb:30 remote.h component=transport role=header prefix=remote includes=odb:1,refs:1 cochange=transport:245,refs:24,index:12,revision:6,setup:2 -repack-cruft.c component=pack role=lib prefix=repack includes=pack:2,setup:1 cochange=pack:8,transport:2,odb:1 -repack-filtered.c component=pack role=lib prefix=repack includes=pack:1,setup:1 cochange=pack:1 -repack-geometry.c component=pack role=lib prefix=repack includes=pack:3,setup:1 cochange=pack:25,transport:2,odb:1 -repack-midx.c component=pack role=lib prefix=repack includes=odb:3,pack:3,refs:1 cochange=pack:23,refs:3,setup:2,merge:1,odb:1 -repack-promisor.c component=pack role=lib prefix=repack-promisor includes=pack:3,setup:1 cochange=pack:8,odb:3,revision:2 -repack.c component=pack role=lib prefix=repack includes=pack:3,index:1,odb:1,setup:1 cochange=pack:31,transport:2,odb:1 -repack.h component=pack role=header prefix=repack includes=revision:1 cochange=pack:28 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
@@ -399,8 +401,6 @@ 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 -server-info.c component=pack role=lib prefix=server-info includes=odb:5,pack:2,index:1,refs:1,setup:1 cochange=pack:40,transport:34,odb:33,setup:13,refs:10 -server-info.h component=pack role=header prefix=server-info cochange=pack:2 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 sh-i18n--envsubst.c component=? role=program prefix=sh-i18n--envsubst cochange=index:3,diff:1,transport:1
Makefile +28 -28
122 lines not on this page · raw message
apply.c +1 -1
@@ -15,7 +15,7 @@#include "base85.h" #include "config.h" #include "odb/odb.h" -#include "delta.h" +#include "pack/delta.h" #include "diff.h" #include "dir.h" #include "environment.h"
blame.c +2 -2
@@ -21,8 +21,8 @@#include "blame.h" #include "odb/alloc.h" #include "odb/commit-slab.h" -#include "bloom.h" -#include "commit-graph.h" +#include "pack/bloom.h" +#include "pack/commit-graph.h" define_commit_slab(blame_suspects, struct blame_origin *);static struct blame_suspects blame_suspects;
builtin/backfill.c +1 -1
@@ -22,7 +22,7 @@#include "revision.h" #include "trace2.h" #include "progress.h" -#include "packfile.h" +#include "pack/packfile.h" #include "path-walk.h" static const char *const builtin_backfill_usage[] = {
builtin/cat-file.c +1 -1
@@ -19,7 +19,7 @@#include "parse-options.h" #include "userdiff.h" #include "odb/oid-array.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h"
builtin/clone.c +1 -1
@@ -40,7 +40,7 @@#include "run-command.h" #include "setup.h" #include "connected.h" -#include "packfile.h" +#include "pack/packfile.h" #include "path.h" #include "pkt-line.h" #include "list-objects-filter-options.h"
builtin/commit-graph.c +1 -1
@@ -6,7 +6,7 @@#include "gettext.h" #include "hex.h" #include "parse-options.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "odb/odb.h" #include "progress.h" #include "odb/replace-object.h"
builtin/commit.c +1 -1
@@ -40,7 +40,7 @@#include "mailmap.h" #include "help.h" #include "commit-reach.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "pretty.h" #include "trailer.h"
builtin/count-objects.c +1 -1
@@ -12,7 +12,7 @@#include "path.h" #include "parse-options.h" #include "quote.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" static unsigned long garbage;
builtin/fast-import.c +3 -3
@@ -12,8 +12,8 @@#include "odb/blob.h" #include "odb/tree.h" #include "odb/commit.h" -#include "delta.h" -#include "pack.h" +#include "pack/delta.h" +#include "pack/pack.h" #include "path.h" #include "read-cache-ll.h" #include "refs/refs.h"
@@ -21,7 +21,7 @@#include "quote.h" #include "dir.h" #include "run-command.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h"
builtin/fetch.c +1 -1
@@ -36,7 +36,7 @@#include "commit-reach.h" #include "branch.h" #include "promisor-remote.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "shallow.h" #include "trace.h" #include "trace2.h"
builtin/fsck.c +4 -4
@@ -7,12 +7,12 @@#include "odb/blob.h" #include "odb/tag.h" #include "refs/refs.h" -#include "pack.h" +#include "pack/pack.h" #include "cache-tree.h" #include "odb/fsck.h" #include "parse-options.h" #include "progress.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h"
@@ -24,8 +24,8 @@#include "run-command.h" #include "sparse-index.h" #include "refs/worktree.h" -#include "pack-revindex.h" -#include "pack-bitmap.h" +#include "pack/pack-revindex.h" +#include "pack/pack-bitmap.h" #define REACHABLE 0x0001#define SEEN 0x0002
builtin/gc.c +2 -2
@@ -27,8 +27,8 @@#include "sigchain.h" #include "strvec.h" #include "odb/commit.h" -#include "commit-graph.h" -#include "packfile.h" +#include "pack/commit-graph.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/odb.h" #include "path.h"
builtin/index-pack.c +4 -4
@@ -3,11 +3,11 @@#include "builtin.h" #include "config.h" -#include "delta.h" +#include "pack/delta.h" #include "environment.h" #include "gettext.h" #include "hex.h" -#include "pack.h" +#include "pack/pack.h" #include "csum-file.h" #include "odb/blob.h" #include "odb/commit.h"
@@ -17,8 +17,8 @@#include "odb/fsck.h" #include "strbuf.h" #include "thread-utils.h" -#include "packfile.h" -#include "pack-revindex.h" +#include "pack/packfile.h" +#include "pack/pack-revindex.h" #include "odb/object-file.h" #include "odb/odb.h" #include "odb/streaming.h"
builtin/last-modified.c +2 -2
@@ -1,7 +1,7 @@#include "git-compat-util.h" -#include "bloom.h" +#include "pack/bloom.h" #include "builtin.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "odb/commit-slab.h" #include "odb/commit.h" #include "config.h"
builtin/merge.c +1 -1
@@ -50,7 +50,7 @@#include "branch.h" #include "commit-reach.h" #include "wt-status.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #define DEFAULT_TWOHEAD (1<<0)#define DEFAULT_OCTOPUS (1<<1)
builtin/multi-pack-index.c +1 -1
@@ -5,7 +5,7 @@#include "environment.h" #include "gettext.h" #include "parse-options.h" -#include "midx.h" +#include "pack/midx.h" #include "strbuf.h" #include "trace2.h" #include "odb/odb.h"
builtin/name-rev.c +1 -1
@@ -14,7 +14,7 @@#include "parse-options.h" #include "odb/hash-lookup.h" #include "odb/commit-slab.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "wildmatch.h" #include "mem-pool.h" #include "pretty.h"
builtin/pack-objects.c +10 -10
@@ -10,38 +10,38 @@#include "odb/object.h" #include "odb/commit.h" #include "odb/tag.h" -#include "delta.h" -#include "pack.h" -#include "pack-revindex.h" +#include "pack/delta.h" +#include "pack/pack.h" +#include "pack/pack-revindex.h" #include "csum-file.h" #include "odb/tree-walk.h" #include "diff.h" #include "revision.h" #include "list-objects.h" #include "list-objects-filter-options.h" -#include "pack-objects.h" +#include "pack/pack-objects.h" #include "progress.h" #include "refs/refs.h" #include "thread-utils.h" -#include "pack-bitmap.h" -#include "delta-islands.h" -#include "reachable.h" +#include "pack/pack-bitmap.h" +#include "pack/delta-islands.h" +#include "pack/reachable.h" #include "odb/oid-array.h" #include "strvec.h" #include "strmap.h" #include "list.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/object-file-convert.h" #include "odb/odb.h" #include "odb/streaming.h" #include "odb/replace-object.h" #include "dir.h" -#include "midx.h" +#include "pack/midx.h" #include "trace2.h" #include "shallow.h" #include "promisor-remote.h" -#include "pack-mtimes.h" +#include "pack/pack-mtimes.h" #include "parse-options.h" #include "pkt-line.h" #include "odb/blob.h"
builtin/pack-redundant.c +1 -1
@@ -12,7 +12,7 @@#include "gettext.h" #include "hex.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/odb.h" #include "strbuf.h"
builtin/prune-packed.c +1 -1
@@ -1,7 +1,7 @@#include "builtin.h" #include "gettext.h" #include "parse-options.h" -#include "prune-packed.h" +#include "pack/prune-packed.h" static const char *const prune_packed_usage[] = {"git prune-packed [-n | --dry-run] [-q | --quiet]" ,
builtin/prune.c +2 -2
@@ -8,11 +8,11 @@#include "gettext.h" #include "hex.h" #include "revision.h" -#include "reachable.h" +#include "pack/reachable.h" #include "parse-options.h" #include "path.h" #include "progress.h" -#include "prune-packed.h" +#include "pack/prune-packed.h" #include "odb/replace-object.h" #include "odb/object-file.h" #include "odb/object-name.h"
builtin/receive-pack.c +3 -3
@@ -22,15 +22,15 @@#include "odb/odb.h" #include "odb/oid-array.h" #include "odb/oidset.h" -#include "pack.h" -#include "packfile.h" +#include "pack/pack.h" +#include "pack/packfile.h" #include "parse-options.h" #include "pkt-line.h" #include "protocol.h" #include "refs/refs.h" #include "remote.h" #include "run-command.h" -#include "server-info.h" +#include "pack/server-info.h" #include "setup.h" #include "shallow.h" #include "sideband.h"
builtin/reflog.c +1 -1
@@ -6,7 +6,7 @@#include "hex.h" #include "odb/odb.h" #include "revision.h" -#include "reachable.h" +#include "pack/reachable.h" #include "wildmatch.h" #include "refs/worktree.h" #include "refs/reflog.h"
builtin/repack.c +5 -5
@@ -6,13 +6,13 @@#include "parse-options.h" #include "path.h" #include "run-command.h" -#include "server-info.h" +#include "pack/server-info.h" #include "string-list.h" -#include "midx.h" -#include "packfile.h" -#include "prune-packed.h" +#include "pack/midx.h" +#include "pack/packfile.h" +#include "pack/prune-packed.h" #include "promisor-remote.h" -#include "repack.h" +#include "pack/repack.h" #include "shallow.h" #define ALL_INTO_ONE 1
builtin/rev-list.c +2 -2
@@ -15,7 +15,7 @@#include "odb/object-name.h" #include "odb/object-file.h" #include "odb/odb.h" -#include "pack-bitmap.h" +#include "pack/pack-bitmap.h" #include "parse-options.h" #include "log-tree.h" #include "graph.h"
@@ -24,7 +24,7 @@#include "refs/reflog-walk.h" #include "odb/oidset.h" #include "odb/oidmap.h" -#include "packfile.h" +#include "pack/packfile.h" #include "commit-reach.h" #include "quote.h" #include "strbuf.h"
builtin/show-index.c +1 -1
@@ -5,7 +5,7 @@#include "gettext.h" #include "odb/hash.h" #include "hex.h" -#include "pack.h" +#include "pack/pack.h" #include "parse-options.h" static const char *const show_index_usage[] = {
builtin/unpack-objects.c +3 -3
@@ -12,15 +12,15 @@#include "odb/streaming.h" #include "odb/transaction.h" #include "odb/object.h" -#include "delta.h" -#include "pack.h" +#include "pack/delta.h" +#include "pack/pack.h" #include "odb/blob.h" #include "odb/replace-object.h" #include "strbuf.h" #include "progress.h" #include "decorate.h" #include "odb/fsck.h" -#include "packfile.h" +#include "pack/packfile.h" static int dry_run, quiet, recover, has_errors, strict;static const char unpack_usage[] ="git unpack-objects [-n] [-q] [-r] [--strict]" ;
builtin/update-server-info.c +1 -1
@@ -3,7 +3,7 @@#include "environment.h" #include "gettext.h" #include "parse-options.h" -#include "server-info.h" +#include "pack/server-info.h" static const char *const update_server_info_usage[] = {"git update-server-info [-f | --force]" ,
commit-reach.c +1 -1
@@ -2,7 +2,7 @@#include "git-compat-util.h" #include "odb/commit.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "decorate.h" #include "hex.h" #include "prio-queue.h"
connected.c +1 -1
@@ -8,7 +8,7 @@#include "sigchain.h" #include "connected.h" #include "transport.h" -#include "packfile.h" +#include "pack/packfile.h" #include "promisor-remote.h" static int promised_object_cb(const struct object_id *oid UNUSED,
diagnose.c +1 -1
@@ -8,7 +8,7 @@#include "hex.h" #include "strvec.h" #include "odb/odb.h" -#include "packfile.h" +#include "pack/packfile.h" #include "parse-options.h" #include "repository.h" #include "write-or-die.h"
diff.c +2 -2
@@ -17,7 +17,7 @@#include "quote.h" #include "diff.h" #include "diffcore.h" -#include "delta.h" +#include "pack/delta.h" #include "hex.h" #include "xdiff-interface.h" #include "color.h"
@@ -34,7 +34,7 @@#include "odb/tmp-objdir.h" #include "graph.h" #include "odb/oid-array.h" -#include "packfile.h" +#include "pack/packfile.h" #include "pager.h" #include "parse-options.h" #include "help.h"
fetch-pack.c +3 -3
@@ -13,7 +13,7 @@#include "pkt-line.h" #include "odb/commit.h" #include "odb/tag.h" -#include "pack.h" +#include "pack/pack.h" #include "sideband.h" #include "fetch-pack.h" #include "remote.h"
@@ -23,7 +23,7 @@#include "version.h" #include "odb/oid-array.h" #include "odb/oidset.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/odb.h" #include "odb/object-name.h" #include "path.h"
@@ -32,7 +32,7 @@#include "odb/fsck.h" #include "shallow.h" #include "commit-reach.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "sigchain.h" #include "mergesort.h" #include "prio-queue.h"
http-backend.c +1 -1
@@ -18,7 +18,7 @@#include "url.h" #include "setup.h" #include "strvec.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/odb.h" #include "protocol.h" #include "date.h"
http-push.c +1 -1
@@ -18,7 +18,7 @@#include "odb/tree.h" #include "odb/tree-walk.h" #include "url.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/odb.h" #include "commit-reach.h"
http-walker.c +1 -1
@@ -8,7 +8,7 @@#include "http.h" #include "list.h" #include "transport.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/odb.h"
http.c +2 -2
@@ -7,7 +7,7 @@#include "hex.h" #include "http.h" #include "config.h" -#include "pack.h" +#include "pack/pack.h" #include "run-command.h" #include "url.h" #include "urlmatch.h"
@@ -17,7 +17,7 @@#include "gettext.h" #include "trace.h" #include "transport.h" -#include "packfile.h" +#include "pack/packfile.h" #include "string-list.h" #include "odb/object-file.h" #include "odb/odb.h"
line-log.c +1 -1
@@ -16,7 +16,7 @@#include "line-log.h" #include "setup.h" #include "strvec.h" -#include "bloom.h" +#include "pack/bloom.h" #include "odb/tree-walk.h" static void range_set_grow (struct range_set *rs,size_t extra)
list-objects.c +1 -1
@@ -13,7 +13,7 @@#include "list-objects.h" #include "list-objects-filter.h" #include "list-objects-filter-options.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/odb.h" #include "trace.h" #include "environment.h"
meson.build +27 -27
114 lines not on this page · raw message
odb/commit.c +1 -1
@@ -3,7 +3,7 @@#include "git-compat-util.h" #include "odb/tag.h" #include "odb/commit.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "environment.h" #include "gettext.h" #include "hex.h"
odb/fsck.c +1 -1
@@ -18,7 +18,7 @@#include "url.h" #include "utf8.h" #include "odb/oidset.h" -#include "packfile.h" +#include "pack/packfile.h" #include "submodule-config.h" #include "config.h" #include "help.h"
odb/object-file.c +2 -2
@@ -22,8 +22,8 @@#include "odb/odb.h" #include "odb/streaming.h" #include "odb/transaction.h" -#include "pack.h" -#include "packfile.h" +#include "pack/pack.h" +#include "pack/packfile.h" #include "path.h" #include "read-cache-ll.h" #include "setup.h"
odb/object-name.c +1 -1
@@ -22,7 +22,7 @@#include "repo-settings.h" #include "repository.h" #include "setup.h" -#include "midx.h" +#include "pack/midx.h" #include "commit-reach.h" #include "date.h" #include "odb/object-file-convert.h"
odb/object.c +1 -1
@@ -13,7 +13,7 @@#include "odb/commit.h" #include "odb/tag.h" #include "odb/alloc.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" unsigned int get_max_object_index (const struct repository *repo) {
odb/odb.c +3 -3
@@ -1,6 +1,6 @@#include "git-compat-util.h" #include "abspath.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "config.h" #include "dir.h" #include "environment.h"
@@ -9,13 +9,13 @@#include "khash.h" #include "lockfile.h" #include "odb/loose.h" -#include "midx.h" +#include "pack/midx.h" #include "odb/object-file-convert.h" #include "odb/object-file.h" #include "odb/object-name.h" #include "odb/odb.h" #include "odb/source-inmemory.h" -#include "packfile.h" +#include "pack/packfile.h" #include "path.h" #include "promisor-remote.h" #include "quote.h"
odb/source-files.c +3 -3
@@ -10,11 +10,11 @@#include "odb/source.h" #include "odb/source-files.h" #include "odb/source-loose.h" -#include "pack-objects.h" -#include "packfile.h" +#include "pack/pack-objects.h" +#include "pack/packfile.h" #include "path.h" #include "promisor-remote.h" -#include "repack.h" +#include "pack/repack.h" #include "run-command.h" #include "strbuf.h" #include "string-list.h"
odb/source-packed.c +3 -3
@@ -5,11 +5,11 @@#include "git-zlib.h" #include "list-objects-filter-options.h" #include "mergesort.h" -#include "midx.h" +#include "pack/midx.h" #include "odb/source-packed.h" #include "odb/streaming.h" -#include "packfile.h" -#include "pack-bitmap.h" +#include "pack/packfile.h" +#include "pack/pack-bitmap.h" static int find_pack_entry(struct odb_source_packed *store, const struct object_id *oid,
odb/source-packed.h +1 -1
@@ -2,7 +2,7 @@#define ODB_SOURCE_PACKED_H #include "odb/source.h" -#include "packfile-list.h" +#include "pack/packfile-list.h" #include "strmap.h" /*
odb/source.c +1 -1
@@ -2,7 +2,7 @@#include "odb/object-file.h" #include "odb/source-files.h" #include "odb/source.h" -#include "packfile.h" +#include "pack/packfile.h" static const char *const odb_source_names_by_type[] = { [ODB_SOURCE_UNKNOWN ] ="unknown" ,
odb/tag.c +1 -1
@@ -11,7 +11,7 @@#include "odb/alloc.h" #include "gpg-interface.h" #include "hex.h" -#include "packfile.h" +#include "pack/packfile.h" #include "repository.h" const char *tag_type ="tag" ;
oss-fuzz/fuzz-commit-graph.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "repository.h" int LLVMFuzzerTestOneInput (const uint8_t *data,size_t size);
oss-fuzz/fuzz-pack-headers.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "packfile.h" +#include "pack/packfile.h" int LLVMFuzzerTestOneInput (const uint8_t *data,size_t size);
oss-fuzz/fuzz-pack-idx.c +1 -1
@@ -1,6 +1,6 @@#include "git-compat-util.h" #include "odb/odb.h" -#include "packfile.h" +#include "pack/packfile.h" int LLVMFuzzerTestOneInput (const uint8_t *data,size_t size);
pack/bloom.c renamed from bloom.c +2 -2
@@ -1,11 +1,11 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "bloom.h" +#include "pack/bloom.h" #include "diff.h" #include "diffcore.h" #include "hashmap.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "odb/commit.h" #include "odb/commit-slab.h" #include "odb/tree.h"
pack/bloom.h renamed from bloom.h +0 -0
pack/chunk-format.c renamed from chunk-format.c +1 -1
@@ -2,7 +2,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "chunk-format.h" +#include "pack/chunk-format.h" #include "csum-file.h" #include "gettext.h" #include "odb/hash.h"
pack/chunk-format.h renamed from chunk-format.h +0 -0
pack/commit-graph.c renamed from commit-graph.c +4 -4
@@ -7,12 +7,12 @@#include "gettext.h" #include "hex.h" #include "lockfile.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/commit.h" #include "odb/object.h" #include "refs/refs.h" #include "odb/hash-lookup.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "odb/odb.h" #include "odb/oid-array.h" #include "path.h"
@@ -20,13 +20,13 @@#include "hashmap.h" #include "odb/replace-object.h" #include "progress.h" -#include "bloom.h" +#include "pack/bloom.h" #include "odb/commit-slab.h" #include "shallow.h" #include "json-writer.h" #include "trace2.h" #include "odb/tree.h" -#include "chunk-format.h" +#include "pack/chunk-format.h" void git_test_write_commit_graph_or_die (struct odb_source *source) {
pack/commit-graph.h renamed from commit-graph.h +0 -0
pack/delta-islands.c renamed from delta-islands.c +4 -4
@@ -7,15 +7,15 @@#include "hex.h" #include "odb/tag.h" #include "odb/tree.h" -#include "pack.h" +#include "pack/pack.h" #include "odb/tree-walk.h" #include "diff.h" #include "progress.h" #include "refs/refs.h" #include "khash.h" -#include "pack-bitmap.h" -#include "pack-objects.h" -#include "delta-islands.h" +#include "pack/pack-bitmap.h" +#include "pack/pack-objects.h" +#include "pack/delta-islands.h" #include "odb/oid-array.h" #include "config.h"
pack/delta-islands.h renamed from delta-islands.h +0 -0
pack/delta.h renamed from delta.h +0 -0
pack/diff-delta.c renamed from diff-delta.c +1 -1
@@ -14,7 +14,7 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "delta.h" +#include "pack/delta.h" /* maximum hash entry list for the same hash bucket */ #define HASH_LIMIT 64
pack/midx-write.c renamed from midx-write.c +5 -5
@@ -3,20 +3,20 @@#include "config.h" #include "hex.h" #include "lockfile.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/hash-lookup.h" -#include "midx.h" +#include "pack/midx.h" #include "progress.h" #include "trace2.h" #include "run-command.h" -#include "chunk-format.h" -#include "pack-bitmap.h" +#include "pack/chunk-format.h" +#include "pack/pack-bitmap.h" #include "refs/refs.h" #include "revision.h" #include "list-objects.h" #include "path.h" -#include "pack-revindex.h" +#include "pack/pack-revindex.h" #define PACK_EXPIRED UINT_MAX#define BITMAP_POS_UNKNOWN (~((uint32_t)0))
pack/midx.c renamed from midx.c +5 -5
@@ -4,14 +4,14 @@#include "config.h" #include "dir.h" #include "hex.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/hash-lookup.h" -#include "midx.h" +#include "pack/midx.h" #include "progress.h" #include "trace2.h" -#include "chunk-format.h" -#include "pack-bitmap.h" -#include "pack-revindex.h" +#include "pack/chunk-format.h" +#include "pack/pack-bitmap.h" +#include "pack/pack-revindex.h" #include "strvec.h" #define MIDX_PACK_ERROR ((void *)(intptr_t)-1)
pack/midx.h renamed from midx.h +0 -0
pack/pack-bitmap-write.c renamed from pack-bitmap-write.c +6 -6
@@ -9,24 +9,24 @@#include "diff.h" #include "revision.h" #include "progress.h" -#include "pack.h" -#include "pack-bitmap.h" +#include "pack/pack.h" +#include "pack/pack-bitmap.h" #include "odb/hash-lookup.h" -#include "pack-objects.h" +#include "pack/pack-objects.h" #include "path.h" #include "commit-reach.h" #include "prio-queue.h" #include "trace2.h" #include "odb/tree.h" #include "odb/tree-walk.h" -#include "pseudo-merge.h" +#include "pack/pseudo-merge.h" #include "odb/oid-array.h" #include "config.h" #include "odb/alloc.h" #include "refs/refs.h" #include "strmap.h" -#include "midx.h" -#include "pack-revindex.h" +#include "pack/midx.h" +#include "pack/pack-revindex.h" struct bitmapped_commit {struct commit *commit;
pack/pack-bitmap.c renamed from pack-bitmap.c +7 -7
@@ -10,18 +10,18 @@#include "revision.h" #include "progress.h" #include "list-objects.h" -#include "pack.h" -#include "pack-bitmap.h" -#include "pack-revindex.h" -#include "pack-objects.h" -#include "packfile.h" +#include "pack/pack.h" +#include "pack/pack-bitmap.h" +#include "pack/pack-revindex.h" +#include "pack/pack-objects.h" +#include "pack/packfile.h" #include "repository.h" #include "trace2.h" #include "odb/odb.h" #include "list-objects-filter-options.h" -#include "midx.h" +#include "pack/midx.h" #include "config.h" -#include "pseudo-merge.h" +#include "pack/pseudo-merge.h" /* * An entry on the bitmap index, representing the bitmap for a given
pack/pack-bitmap.h renamed from pack-bitmap.h +2 -2
@@ -3,8 +3,8 @@#include "ewah/ewok.h" #include "khash.h" -#include "pack.h" -#include "pack-objects.h" +#include "pack/pack.h" +#include "pack/pack-objects.h" #include "refs/refs.h" #include "string-list.h"
pack/pack-check.c renamed from pack-check.c +2 -2
@@ -4,9 +4,9 @@#include "environment.h" #include "hex.h" #include "repository.h" -#include "pack.h" +#include "pack/pack.h" #include "progress.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/object-file.h" #include "odb/odb.h" #include "odb/streaming.h"
pack/pack-mtimes.c renamed from pack-mtimes.c +2 -2
@@ -1,8 +1,8 @@#include "git-compat-util.h" #include "gettext.h" -#include "pack-mtimes.h" +#include "pack/pack-mtimes.h" #include "odb/odb.h" -#include "packfile.h" +#include "pack/packfile.h" #include "strbuf.h" static char *pack_mtimes_filename (struct packed_git *p)
pack/pack-mtimes.h renamed from pack-mtimes.h +0 -0
pack/pack-objects.c renamed from pack-objects.c +3 -3
@@ -1,8 +1,8 @@#include "git-compat-util.h" #include "odb/object.h" -#include "pack.h" -#include "pack-objects.h" -#include "packfile.h" +#include "pack/pack.h" +#include "pack/pack-objects.h" +#include "pack/packfile.h" #include "parse.h" #include "repository.h"
pack/pack-objects.h renamed from pack-objects.h +2 -2
@@ -3,8 +3,8 @@#include "odb/odb.h" #include "thread-utils.h" -#include "pack.h" -#include "packfile.h" +#include "pack/pack.h" +#include "pack/packfile.h" struct repository ;
pack/pack-revindex.c renamed from pack-revindex.c +3 -3
@@ -1,13 +1,13 @@#include "git-compat-util.h" #include "gettext.h" -#include "pack-revindex.h" +#include "pack/pack-revindex.h" #include "odb/odb.h" -#include "packfile.h" +#include "pack/packfile.h" #include "strbuf.h" #include "trace2.h" #include "parse.h" #include "repository.h" -#include "midx.h" +#include "pack/midx.h" #include "csum-file.h" struct revindex_entry {
pack/pack-revindex.h renamed from pack-revindex.h +0 -0
pack/pack-write.c renamed from pack-write.c +5 -5
@@ -2,14 +2,14 @@#include "environment.h" #include "gettext.h" #include "hex.h" -#include "pack.h" +#include "pack/pack.h" #include "csum-file.h" #include "remote.h" -#include "chunk-format.h" +#include "pack/chunk-format.h" #include "odb/object-file.h" -#include "pack-mtimes.h" -#include "pack-objects.h" -#include "pack-revindex.h" +#include "pack/pack-mtimes.h" +#include "pack/pack-objects.h" +#include "pack/pack-revindex.h" #include "path.h" #include "repository.h" #include "strbuf.h"
pack/pack.h renamed from pack.h +0 -0
pack/packfile-list.c renamed from packfile-list.c +2 -2
@@ -1,6 +1,6 @@#include "git-compat-util.h" -#include "packfile.h" -#include "packfile-list.h" +#include "pack/packfile.h" +#include "pack/packfile-list.h" void packfile_list_clear (struct packfile_list *list) {
pack/packfile-list.h renamed from packfile-list.h +0 -0
pack/packfile.c renamed from packfile.c +7 -7
@@ -5,11 +5,11 @@#include "gettext.h" #include "hex.h" #include "list.h" -#include "pack.h" +#include "pack/pack.h" #include "repository.h" #include "dir.h" -#include "packfile.h" -#include "delta.h" +#include "pack/packfile.h" +#include "pack/delta.h" #include "odb/hash-lookup.h" #include "odb/commit.h" #include "odb/object.h"
@@ -20,11 +20,11 @@#include "odb/object-file.h" #include "odb/odb.h" #include "odb/streaming.h" -#include "midx.h" -#include "commit-graph.h" -#include "pack-revindex.h" +#include "pack/midx.h" +#include "pack/commit-graph.h" +#include "pack/pack-revindex.h" #include "promisor-remote.h" -#include "pack-mtimes.h" +#include "pack/pack-mtimes.h" char *odb_pack_name (struct repository *r,struct strbuf *buf,const unsigned char *hash,const char *ext)
pack/packfile.h renamed from packfile.h +1 -1
@@ -7,7 +7,7 @@#include "odb/source-files.h" #include "odb/source-packed.h" #include "odb/oidset.h" -#include "packfile-list.h" +#include "pack/packfile-list.h" #include "repository.h" /* in odb.h */
pack/patch-delta.c renamed from patch-delta.c +1 -1
@@ -10,7 +10,7 @@*/ #include "git-compat-util.h" -#include "delta.h" +#include "pack/delta.h" void *patch_delta(const void *src_buf, size_t src_size, const void *delta_buf, size_t delta_size,
pack/prune-packed.c renamed from prune-packed.c +2 -2
@@ -3,9 +3,9 @@#include "git-compat-util.h" #include "gettext.h" #include "odb/object-file.h" -#include "packfile.h" +#include "pack/packfile.h" #include "progress.h" -#include "prune-packed.h" +#include "pack/prune-packed.h" #include "repository.h" static struct progress *progress;
pack/prune-packed.h renamed from prune-packed.h +0 -0
pack/pseudo-merge.c renamed from pseudo-merge.c +2 -2
@@ -2,14 +2,14 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "pseudo-merge.h" +#include "pack/pseudo-merge.h" #include "date.h" #include "odb/oid-array.h" #include "strbuf.h" #include "config.h" #include "string-list.h" #include "refs/refs.h" -#include "pack-bitmap.h" +#include "pack/pack-bitmap.h" #include "odb/commit.h" #include "odb/alloc.h" #include "progress.h"
pack/pseudo-merge.h renamed from pseudo-merge.h +0 -0
pack/reachable.c renamed from reachable.c +4 -4
@@ -8,15 +8,15 @@#include "odb/blob.h" #include "diff.h" #include "revision.h" -#include "reachable.h" +#include "pack/reachable.h" #include "cache-tree.h" #include "progress.h" #include "list-objects.h" -#include "packfile.h" +#include "pack/packfile.h" #include "refs/worktree.h" #include "odb/object-file.h" -#include "pack-bitmap.h" -#include "pack-mtimes.h" +#include "pack/pack-bitmap.h" +#include "pack/pack-mtimes.h" #include "config.h" #include "run-command.h" #include "sequencer.h"
pack/reachable.h renamed from reachable.h +0 -0
pack/repack-cruft.c renamed from repack-cruft.c +2 -2
@@ -1,6 +1,6 @@#include "git-compat-util.h" -#include "repack.h" -#include "packfile.h" +#include "pack/repack.h" +#include "pack/packfile.h" #include "repository.h" #include "run-command.h"
pack/repack-filtered.c renamed from repack-filtered.c +1 -1
@@ -1,5 +1,5 @@#include "git-compat-util.h" -#include "repack.h" +#include "pack/repack.h" #include "repository.h" #include "run-command.h" #include "string-list.h"
pack/repack-geometry.c renamed from repack-geometry.c +3 -3
@@ -1,11 +1,11 @@#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "repack.h" +#include "pack/repack.h" #include "repository.h" #include "hex.h" -#include "midx.h" -#include "packfile.h" +#include "pack/midx.h" +#include "pack/packfile.h" static uint32_t pack_geometry_weight (struct packed_git *p) {
pack/repack-midx.c renamed from repack-midx.c +3 -3
@@ -1,12 +1,12 @@#include "git-compat-util.h" -#include "repack.h" +#include "pack/repack.h" #include "odb/hash.h" #include "hex.h" #include "lockfile.h" -#include "midx.h" +#include "pack/midx.h" #include "odb/odb.h" #include "odb/oidset.h" -#include "pack-bitmap.h" +#include "pack/pack-bitmap.h" #include "path.h" #include "refs/refs.h" #include "run-command.h"
pack/repack-promisor.c renamed from repack-promisor.c +3 -3
@@ -1,8 +1,8 @@#include "git-compat-util.h" -#include "repack.h" +#include "pack/repack.h" #include "hex.h" -#include "pack.h" -#include "packfile.h" +#include "pack/pack.h" +#include "pack/packfile.h" #include "path.h" #include "repository.h" #include "run-command.h"
pack/repack.c renamed from repack.c +3 -3
@@ -1,10 +1,10 @@#include "git-compat-util.h" #include "dir.h" -#include "midx.h" +#include "pack/midx.h" #include "odb/odb.h" -#include "packfile.h" +#include "pack/packfile.h" #include "path.h" -#include "repack.h" +#include "pack/repack.h" #include "repository.h" #include "run-command.h" #include "tempfile.h"
pack/repack.h renamed from repack.h +0 -0
pack/server-info.c renamed from server-info.c +2 -2
@@ -8,11 +8,11 @@#include "odb/object.h" #include "odb/commit.h" #include "odb/tag.h" -#include "packfile.h" +#include "pack/packfile.h" #include "path.h" #include "odb/object-file.h" #include "odb/odb.h" -#include "server-info.h" +#include "pack/server-info.h" #include "strbuf.h" #include "tempfile.h"
pack/server-info.h renamed from server-info.h +0 -0
path.c +1 -1
@@ -13,7 +13,7 @@#include "setup.h" #include "submodule-config.h" #include "path.h" -#include "packfile.h" +#include "pack/packfile.h" #include "odb/odb.h" #include "lockfile.h" #include "exec-cmd.h"
promisor-remote.c +1 -1
@@ -9,7 +9,7 @@#include "trace2.h" #include "transport.h" #include "strvec.h" -#include "packfile.h" +#include "pack/packfile.h" #include "environment.h" #include "url.h" #include "urlmatch.h"
repo-settings.c +2 -2
@@ -2,8 +2,8 @@#include "config.h" #include "repo-settings.h" #include "repository.h" -#include "midx.h" -#include "pack-objects.h" +#include "pack/midx.h" +#include "pack/pack-objects.h" #include "setup.h" static void repo_cfg_bool(struct repository *r, const char *key, int *dest,
revision.c +3 -3
@@ -31,7 +31,7 @@#include "odb/commit-slab.h" #include "cache-tree.h" #include "bisect.h" -#include "packfile.h" +#include "pack/packfile.h" #include "refs/worktree.h" #include "path.h" #include "read-cache.h"
@@ -40,11 +40,11 @@#include "strvec.h" #include "trace2.h" #include "commit-reach.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "prio-queue.h" #include "hashmap.h" #include "utf8.h" -#include "bloom.h" +#include "pack/bloom.h" #include "json-writer.h" #include "list-objects-filter-options.h" #include "resolve-undo.h"
run-command.c +1 -1
@@ -15,7 +15,7 @@#include "trace2.h" #include "quote.h" #include "config.h" -#include "packfile.h" +#include "pack/packfile.h" #include "compat/nonblock.h" void child_process_init (struct child_process *child)
scalar.c +1 -1
@@ -15,7 +15,7 @@#include "fsmonitor-settings.h" #include "refs/refs.h" #include "dir.h" -#include "packfile.h" +#include "pack/packfile.h" #include "help.h" #include "setup.h" #include "trace2.h"
t/helper/test-bitmap.c +2 -2
@@ -4,8 +4,8 @@#include "git-compat-util.h" #include "hex.h" #include "odb/odb.h" -#include "pack-bitmap.h" -#include "pseudo-merge.h" +#include "pack/pack-bitmap.h" +#include "pack/pseudo-merge.h" #include "setup.h" static int bitmap_list_commits (void )
t/helper/test-bloom.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "test-tool.h" -#include "bloom.h" +#include "pack/bloom.h" #include "hex.h" #include "odb/commit.h" #include "repository.h"
t/helper/test-delta.c +1 -1
@@ -10,7 +10,7 @@#include "test-tool.h" #include "git-compat-util.h" -#include "delta.h" +#include "pack/delta.h" #include "strbuf.h" static const char usage_str[] =
t/helper/test-find-pack.c +1 -1
@@ -3,7 +3,7 @@#include "test-tool.h" #include "odb/object-name.h" #include "odb/odb.h" -#include "packfile.h" +#include "pack/packfile.h" #include "parse-options.h" #include "setup.h"
t/helper/test-name-hash.c +1 -1
@@ -5,7 +5,7 @@#include "test-tool.h" #include "git-compat-util.h" -#include "pack-objects.h" +#include "pack/pack-objects.h" #include "strbuf.h" int cmd__name_hash(int argc UNUSED, const char **argv UNUSED)
t/helper/test-pack-deltas.c +3 -3
@@ -2,12 +2,12 @@#include "test-tool.h" #include "git-compat-util.h" -#include "delta.h" +#include "pack/delta.h" #include "git-zlib.h" #include "odb/hash.h" #include "hex.h" -#include "pack.h" -#include "pack-objects.h" +#include "pack/pack.h" +#include "pack/pack-objects.h" #include "parse-options.h" #include "setup.h" #include "strbuf.h"
t/helper/test-pack-mtimes.c +2 -2
@@ -4,8 +4,8 @@#include "hex.h" #include "strbuf.h" #include "odb/odb.h" -#include "packfile.h" -#include "pack-mtimes.h" +#include "pack/packfile.h" +#include "pack/pack-mtimes.h" #include "setup.h" static void dump_mtimes (struct packed_git *p)
t/helper/test-read-graph.c +2 -2
@@ -1,10 +1,10 @@#define USE_THE_REPOSITORY_VARIABLE #include "test-tool.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "repository.h" #include "odb/odb.h" -#include "bloom.h" +#include "pack/bloom.h" #include "setup.h" static void dump_graph_info (struct commit_graph *graph)
t/helper/test-read-midx.c +4 -4
@@ -2,14 +2,14 @@#include "test-tool.h" #include "hex.h" -#include "midx.h" +#include "pack/midx.h" #include "repository.h" #include "odb/odb.h" -#include "pack-bitmap.h" -#include "packfile.h" +#include "pack/pack-bitmap.h" +#include "pack/packfile.h" #include "setup.h" #include "gettext.h" -#include "pack-revindex.h" +#include "pack/pack-revindex.h" static struct multi_pack_index *setup_midx (const char *object_dir) {
t/helper/test-repository.c +1 -1
@@ -1,7 +1,7 @@#define USE_THE_REPOSITORY_VARIABLE #include "test-tool.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "odb/commit.h" #include "environment.h" #include "hex.h"
t/helper/test-synthesize.c +1 -1
@@ -7,7 +7,7 @@#include "hex.h" #include "odb/object-file.h" #include "odb/object.h" -#include "pack.h" +#include "pack/pack.h" #include "parse-options.h" #include "parse.h" #include "repository.h"
transport-helper.c +1 -1
@@ -19,7 +19,7 @@#include "refs/refspec.h" #include "transport-internal.h" #include "protocol.h" -#include "packfile.h" +#include "pack/packfile.h" static int debug;
upload-pack.c +1 -1
@@ -26,7 +26,7 @@#include "trace2.h" #include "protocol.h" #include "upload-pack.h" -#include "commit-graph.h" +#include "pack/commit-graph.h" #include "commit-reach.h" #include "shallow.h" #include "trace.h"
Signature · 1 line
2.54.0