diff options
author | Shawn Pearce <spearce@spearce.org> | 2006-10-29 04:41:59 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-29 13:45:03 -0800 |
commit | b8077709243138c3d8cc1c096c06a95b250a9001 (patch) | |
tree | 5ceb0feedf42c88fafc1210f826678c3c87e488a /test-sha1.sh | |
parent | 01cff2d2ca77dc050973e1fc4702119a715cc919 (diff) | |
download | git-b8077709243138c3d8cc1c096c06a95b250a9001.tar.gz git-b8077709243138c3d8cc1c096c06a95b250a9001.tar.xz |
Teach git-index-pack how to keep a pack file.
To prevent a race condition between `index-pack --stdin` and
`repack -a -d` where the repack deletes the newly created pack
file before any refs are updated to reference objects contained
within it we mark the pack file as one that should be kept. This
removes it from the list of packs that `repack -a -d` will consider
for removal.
Callers such as `receive-pack` which want to invoke `index-pack`
should use this new --keep option to prevent the newly created pack
and index file pair from being deleted before they have finished any
related ref updates. Only after all ref updates have been finished
should the associated .keep file be removed.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'test-sha1.sh')
0 files changed, 0 insertions, 0 deletions