Teach git-repack to preserve objects referred to by reflog entries.
This adds a new option --reflog to pack-objects and revision machinery; do not bother documenting it for now, since this is only useful for local repacking. When the option is passed, objects reachable from reflog entries are marked as interesting while computing the set of objects to pack. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -62,7 +62,7 @@ case ",$all_into_one," in
|
||||
esac
|
||||
|
||||
args="$args $local $quiet $no_reuse_delta$extra"
|
||||
name=$(git-pack-objects --non-empty --all $args </dev/null "$PACKTMP") ||
|
||||
name=$(git-pack-objects --non-empty --all --reflog $args </dev/null "$PACKTMP") ||
|
||||
exit 1
|
||||
if [ -z "$name" ]; then
|
||||
echo Nothing new to pack.
|
||||
|
||||
Reference in New Issue
Block a user