Re: [PATCH] gc: call "prune --expire 2.weeks.ago"
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:22
Pieter de Bie [off-list ref] writes:
On Mar 12, 2008, at 6:01 PM, Jeff King wrote:quoted
On Wed, Mar 12, 2008 at 05:05:51PM +0100, Johannes Schindelin wrote:quoted
quoted
I'd really like it to be at least 2 weeksCould you back that up with an explanation, as to why?I assume it's "because I wouldn't want to lose work I had done within the last two weeks." Yes, I know that this expiration is actually after the reflog has already expiredAh, I hadn't realised that. Then I don't really care, one week sounds fine too. 2 weeks just seemed a bit short, as the default reflog is 30 days. But if it's 2 weeks after the 30 days, that should be more than enough
Wasn't the default 90 days? In any case, after 90 days, my reading of the code is that these loose ones become unreachable, and when we look at their timestamps, we notice that they are already more than 2 weeks old, and they will immediately be removed. So it won't be "2 weeks after X", either.