Re: Decreasing gains from git lost-found

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nicolas Pitre <nico@...>
Cc: Junio C Hamano <gitster@...>, Git Mailing List <git@...>
Date: Tuesday, September 11, 2007 - 10:27 am

Nicolas Pitre wrote:

I didn't. I wanted to get rid of superfluous loose objects in the odb.


So maybe we should deprecate git-lost-found? Since that was *also* designed
for the scenario where one has lost a branch tip.

Anyways, in this case the lost tip was the result of a git rebase, of which
there are usually 20 or so every day in my reflog. I knew what the commit-
subject was (roughly), but had no idea which of the 8 straight rebases that
got lost.


Why? I'd have no idea where I'd end up. I can't remember exactly what I
did to my branch head more than 5 revs (or 15 minutes) ago, and since
the reflog provides "subject-by-action" instead of "subject-by-commit"
it's, imo, much less usable for recovering lost branch-heads.


Not really. It's cluttered to uselessness with "switched from branch
foo to branch bar" "rebase" (without commit-subject) and "merge x:
fast forward".

Had I only remembered the exact wording in the commit-subject I'd
have found it a lot faster with "git-lost-found | grep wording" than
I would have if I'd used the reflog from the start.

Since I (usually) meticulously store lightweight tags everywhere I
think there's a risk I'll need it, and also prune regularly, I
simply expected git-lost-found to be a little less verbose.

I had forgotten that the reflog protects the otherwise prunable
objects, which, in combination with my unwise usage of this particular
repo as an educational toy-repo landed me with a serious bunch of
loose tips.

Anyways, problem solved now. I'll just expire the reflog before I prune
and continue to use git-lost-found to recover loose tips when I need it.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Decreasing gains from git lost-found, Andreas Ericsson, (Mon Sep 10, 11:21 am)
Re: Decreasing gains from git lost-found, Junio C Hamano, (Mon Sep 10, 1:30 pm)
Re: Decreasing gains from git lost-found, Andreas Ericsson, (Tue Sep 11, 7:42 am)
Re: Decreasing gains from git lost-found, Matthieu Moy, (Tue Sep 11, 10:20 am)
Re: Decreasing gains from git lost-found, Andreas Ericsson, (Tue Sep 11, 10:31 am)
Re: Decreasing gains from git lost-found, Nicolas Pitre, (Tue Sep 11, 11:15 am)
Re: Decreasing gains from git lost-found, Andreas Ericsson, (Tue Sep 11, 11:36 am)
Re: Decreasing gains from git lost-found, Nicolas Pitre, (Tue Sep 11, 9:50 am)
Re: Decreasing gains from git lost-found, Andreas Ericsson, (Tue Sep 11, 10:27 am)
Re: Decreasing gains from git lost-found, Nicolas Pitre, (Tue Sep 11, 11:12 am)
Re: Decreasing gains from git lost-found, Andreas Ericsson, (Tue Sep 11, 11:39 am)
Re: Decreasing gains from git lost-found, Andreas Ericsson, (Tue Sep 11, 10:38 am)
Re: Decreasing gains from git lost-found, Nicolas Pitre, (Tue Sep 11, 10:58 am)
Re: Decreasing gains from git lost-found, Andreas Ericsson, (Tue Sep 11, 11:25 am)
Re: Decreasing gains from git lost-found, Matthieu Moy, (Mon Sep 10, 11:28 am)
Re: Decreasing gains from git lost-found, Andreas Ericsson, (Mon Sep 10, 11:33 am)