summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorLibravatar Shawn Pearce <spearce@spearce.org>2006-10-29 04:41:59 -0500
committerLibravatar Junio C Hamano <junkio@cox.net>2006-10-29 13:45:03 -0800
commitb8077709243138c3d8cc1c096c06a95b250a9001 (patch)
tree5ceb0feedf42c88fafc1210f826678c3c87e488a /builtin-rev-list.c
parentMerge early part of branch 'np/index-pack' into sp/keep-pack (diff)
downloadtgif-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 'builtin-rev-list.c')
0 files changed, 0 insertions, 0 deletions