Re: [PATCH 2/2] Protect commits recorded in reflog from pruning.
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Dec 18, 2006, 14:08 UTC
- Message-ID
- <20061218140813.GA32446@spearce.org>
- In-Reply-To
- <7vr6uxzgjb.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
> This teaches fsck-objects and prune to protect objects referred > to by reflog entries.
Nice!
But its not enough.
$ git-repack -a -d
$ git reset --hard HEAD^
$ git-repack -a -d
$ git reset --hard HEAD@{1}that last reset would fail now, wouldn't it? pack-objects needs to know it should be pulling in the objects stuff reachable from reflogs too.