From: Shawn Pearce Date: Mon, 18 Dec 2006 14:08:13 GMT Subject: Re: [PATCH 2/2] Protect commits recorded in reflog from pruning. Message-ID: <20061218140813.GA32446@spearce.org> In-Reply-To: <7vr6uxzgjb.fsf@assigned-by-dhcp.cox.net> Junio C Hamano 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. --