Revision 663b2b1b90bf76275044824ddeca96aaec240f09 authored by Derrick Stolee on 17 September 2020, 18:11:46 UTC, committed by Junio C Hamano on 17 September 2020, 18:30:05 UTC
The first new task in the 'git maintenance' builtin is the 'commit-graph' task. This updates the commit-graph file incrementally with the command git commit-graph write --reachable --split By writing an incremental commit-graph file using the "--split" option we minimize the disruption from this operation. The default behavior is to merge layers until the new "top" layer is less than half the size of the layer below. This provides quick writes most of the time, with the longer writes following a power law distribution. Most importantly, concurrent Git processes only look at the commit-graph-chain file for a very short amount of time, so they will verly likely not be holding a handle to the file when we try to replace it. (This only matters on Windows.) If a concurrent process reads the old commit-graph-chain file, but our job expires some of the .graph files before they can be read, then those processes will see a warning message (but not fail). This could be avoided by a future update to use the --expire-time argument when writing the commit-graph. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3103e98
File | Mode | Size |
---|---|---|
add.c | -rw-r--r-- | 17.3 KB |
am.c | -rw-r--r-- | 60.4 KB |
annotate.c | -rw-r--r-- | 419 bytes |
apply.c | -rw-r--r-- | 678 bytes |
archive.c | -rw-r--r-- | 3.1 KB |
bisect--helper.c | -rw-r--r-- | 19.8 KB |
blame.c | -rw-r--r-- | 32.3 KB |
branch.c | -rw-r--r-- | 25.7 KB |
bundle.c | -rw-r--r-- | 5.7 KB |
cat-file.c | -rw-r--r-- | 18.6 KB |
check-attr.c | -rw-r--r-- | 4.5 KB |
check-ignore.c | -rw-r--r-- | 5.1 KB |
check-mailmap.c | -rw-r--r-- | 1.6 KB |
check-ref-format.c | -rw-r--r-- | 2.2 KB |
checkout-index.c | -rw-r--r-- | 6.7 KB |
checkout.c | -rw-r--r-- | 55.1 KB |
clean.c | -rw-r--r-- | 26.5 KB |
clone.c | -rw-r--r-- | 37.0 KB |
column.c | -rw-r--r-- | 1.9 KB |
commit-graph.c | -rw-r--r-- | 8.5 KB |
commit-tree.c | -rw-r--r-- | 3.7 KB |
commit.c | -rw-r--r-- | 51.5 KB |
config.c | -rw-r--r-- | 25.7 KB |
count-objects.c | -rw-r--r-- | 4.1 KB |
credential.c | -rw-r--r-- | 695 bytes |
describe.c | -rw-r--r-- | 17.6 KB |
diff-files.c | -rw-r--r-- | 2.3 KB |
diff-index.c | -rw-r--r-- | 1.5 KB |
diff-tree.c | -rw-r--r-- | 5.5 KB |
diff.c | -rw-r--r-- | 15.1 KB |
difftool.c | -rw-r--r-- | 21.5 KB |
env--helper.c | -rw-r--r-- | 2.5 KB |
fast-export.c | -rw-r--r-- | 34.4 KB |
fetch-pack.c | -rw-r--r-- | 6.5 KB |
fetch.c | -rw-r--r-- | 52.7 KB |
fmt-merge-msg.c | -rw-r--r-- | 1.8 KB |
for-each-ref.c | -rw-r--r-- | 3.0 KB |
fsck.c | -rw-r--r-- | 25.0 KB |
gc.c | -rw-r--r-- | 21.1 KB |
get-tar-commit-id.c | -rw-r--r-- | 1.3 KB |
grep.c | -rw-r--r-- | 31.5 KB |
hash-object.c | -rw-r--r-- | 4.4 KB |
help.c | -rw-r--r-- | 15.4 KB |
index-pack.c | -rw-r--r-- | 48.7 KB |
init-db.c | -rw-r--r-- | 18.8 KB |
interpret-trailers.c | -rw-r--r-- | 3.7 KB |
log.c | -rw-r--r-- | 60.8 KB |
ls-files.c | -rw-r--r-- | 19.1 KB |
ls-remote.c | -rw-r--r-- | 4.3 KB |
ls-tree.c | -rw-r--r-- | 5.0 KB |
mailinfo.c | -rw-r--r-- | 1.7 KB |
mailsplit.c | -rw-r--r-- | 7.3 KB |
merge-base.c | -rw-r--r-- | 4.4 KB |
merge-file.c | -rw-r--r-- | 3.2 KB |
merge-index.c | -rw-r--r-- | 2.3 KB |
merge-ours.c | -rw-r--r-- | 879 bytes |
merge-recursive.c | -rw-r--r-- | 2.4 KB |
merge-tree.c | -rw-r--r-- | 9.2 KB |
merge.c | -rw-r--r-- | 47.0 KB |
mktag.c | -rw-r--r-- | 5.3 KB |
mktree.c | -rw-r--r-- | 5.0 KB |
multi-pack-index.c | -rw-r--r-- | 2.0 KB |
mv.c | -rw-r--r-- | 8.6 KB |
name-rev.c | -rw-r--r-- | 15.8 KB |
notes.c | -rw-r--r-- | 28.3 KB |
pack-objects.c | -rw-r--r-- | 100.8 KB |
pack-redundant.c | -rw-r--r-- | 14.9 KB |
pack-refs.c | -rw-r--r-- | 724 bytes |
patch-id.c | -rw-r--r-- | 3.7 KB |
prune-packed.c | -rw-r--r-- | 790 bytes |
prune.c | -rw-r--r-- | 4.6 KB |
pull.c | -rw-r--r-- | 30.3 KB |
push.c | -rw-r--r-- | 19.5 KB |
range-diff.c | -rw-r--r-- | 2.5 KB |
read-tree.c | -rw-r--r-- | 7.6 KB |
rebase.c | -rw-r--r-- | 61.6 KB |
receive-pack.c | -rw-r--r-- | 53.0 KB |
reflog.c | -rw-r--r-- | 19.9 KB |
remote-ext.c | -rw-r--r-- | 4.5 KB |
remote-fd.c | -rw-r--r-- | 1.8 KB |
remote.c | -rw-r--r-- | 46.8 KB |
repack.c | -rw-r--r-- | 16.5 KB |
replace.c | -rw-r--r-- | 16.8 KB |
rerere.c | -rw-r--r-- | 3.1 KB |
reset.c | -rw-r--r-- | 12.9 KB |
rev-list.c | -rw-r--r-- | 17.5 KB |
rev-parse.c | -rw-r--r-- | 22.0 KB |
revert.c | -rw-r--r-- | 6.9 KB |
rm.c | -rw-r--r-- | 11.0 KB |
send-pack.c | -rw-r--r-- | 7.8 KB |
shortlog.c | -rw-r--r-- | 9.9 KB |
show-branch.c | -rw-r--r-- | 23.1 KB |
show-index.c | -rw-r--r-- | 2.9 KB |
show-ref.c | -rw-r--r-- | 5.6 KB |
sparse-checkout.c | -rw-r--r-- | 14.8 KB |
stash.c | -rw-r--r-- | 39.8 KB |
stripspace.c | -rw-r--r-- | 1.5 KB |
submodule--helper.c | -rw-r--r-- | 63.5 KB |
symbolic-ref.c | -rw-r--r-- | 2.0 KB |
tag.c | -rw-r--r-- | 15.9 KB |
unpack-file.c | -rw-r--r-- | 864 bytes |
unpack-objects.c | -rw-r--r-- | 14.0 KB |
update-index.c | -rw-r--r-- | 33.2 KB |
update-ref.c | -rw-r--r-- | 15.0 KB |
update-server-info.c | -rw-r--r-- | 643 bytes |
upload-archive.c | -rw-r--r-- | 3.1 KB |
upload-pack.c | -rw-r--r-- | 1.9 KB |
var.c | -rw-r--r-- | 1.7 KB |
verify-commit.c | -rw-r--r-- | 2.3 KB |
verify-pack.c | -rw-r--r-- | 2.2 KB |
verify-tag.c | -rw-r--r-- | 1.8 KB |
worktree.c | -rw-r--r-- | 27.5 KB |
write-tree.c | -rw-r--r-- | 1.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...