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 |
---|---|---|
nedmalloc | ||
poll | ||
regex | ||
vcbuild | ||
win32 | ||
access.c | -rw-r--r-- | 669 bytes |
apple-common-crypto.h | -rw-r--r-- | 2.7 KB |
basename.c | -rw-r--r-- | 1.3 KB |
bswap.h | -rw-r--r-- | 5.2 KB |
compiler.h | -rw-r--r-- | 897 bytes |
fileno.c | -rw-r--r-- | 117 bytes |
fopen.c | -rw-r--r-- | 938 bytes |
hstrerror.c | -rw-r--r-- | 530 bytes |
inet_ntop.c | -rw-r--r-- | 4.8 KB |
inet_pton.c | -rw-r--r-- | 6.8 KB |
memmem.c | -rw-r--r-- | 752 bytes |
mingw.c | -rw-r--r-- | 74.1 KB |
mingw.h | -rw-r--r-- | 16.6 KB |
mkdir.c | -rw-r--r-- | 468 bytes |
mkdtemp.c | -rw-r--r-- | 153 bytes |
mmap.c | -rw-r--r-- | 711 bytes |
msvc.c | -rw-r--r-- | 113 bytes |
msvc.h | -rw-r--r-- | 823 bytes |
obstack.c | -rw-r--r-- | 13.6 KB |
obstack.h | -rw-r--r-- | 19.2 KB |
pread.c | -rw-r--r-- | 433 bytes |
precompose_utf8.c | -rw-r--r-- | 4.6 KB |
precompose_utf8.h | -rw-r--r-- | 1.3 KB |
qsort_s.c | -rw-r--r-- | 1.3 KB |
setenv.c | -rw-r--r-- | 862 bytes |
sha1-chunked.c | -rw-r--r-- | 362 bytes |
sha1-chunked.h | -rw-r--r-- | 81 bytes |
snprintf.c | -rw-r--r-- | 1.5 KB |
stat.c | -rw-r--r-- | 1.1 KB |
strcasestr.c | -rw-r--r-- | 431 bytes |
strdup.c | -rw-r--r-- | 169 bytes |
strlcpy.c | -rw-r--r-- | 247 bytes |
strtoimax.c | -rw-r--r-- | 214 bytes |
strtoumax.c | -rw-r--r-- | 217 bytes |
terminal.c | -rw-r--r-- | 8.2 KB |
terminal.h | -rw-r--r-- | 256 bytes |
unsetenv.c | -rw-r--r-- | 591 bytes |
win32.h | -rw-r--r-- | 878 bytes |
win32mmap.c | -rw-r--r-- | 1.1 KB |
winansi.c | -rw-r--r-- | 16.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...