Re: [PATCH 2/2] reflog: ignore expire-unreachable for "HEAD" reflog

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Thursday, April 15, 2010 - 9:36 am

On Thu, Apr 15, 2010 at 02:58:29PM +0200, Johannes Sixt wrote:


I think it is because the reachability test is defined as "from the
current ref". So if I am doing a reachability test on next@{20}, I will
check whether it is in the current version of next. Unreachable things
are therefore dead-end experiments. But on HEAD, if I do:

  $ git checkout topic1
  $ git checkout topic2

Then the entry for HEAD@{1} will be unreachable from the current HEAD,
even though it is _not_ a failed experiment. It is just that we are no
longer pointing to that branch.

I think another way of addressing the same problem would be to redefine
"reachable" in this context as "reachable from any current ref".

-Peff
--
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:
Re: [PATCH 2/2] reflog: ignore expire-unreachable for "HEA ..., Jeff King, (Thu Apr 15, 9:36 am)