Re: ghost refs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jay Soffian
Date: Tuesday, April 20, 2010 - 7:52 am

On Tue, Apr 20, 2010 at 10:24 AM, Jeff King <peff@peff.net> wrote:

Handle it just as gracefully as we do today. This is what happens when
you try to create a branch with a similar collision:

$ git branch foo/bar
$ git branch foo
error: there are still refs under 'refs/heads/foo'
fatal: Failed to lock ref for update: Is a directory

So the reflog analog would be:

$ git branch topic/subtopic
error: there are still logs under 'logs/refs/heads/topic'
fatal: Failed to lock log for update: Is a directory

I think it's an edge case; thus I think it's okay to fail as long as
we give a reasonable error and a way to rename it.

j.
--
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:
ghost refs, John Dlugosz, (Wed Apr 7, 9:38 am)
Re: ghost refs, Avery Pennarun, (Wed Apr 7, 9:58 am)
Re: ghost refs, Jeff King, (Wed Apr 7, 2:00 pm)
RE: ghost refs, John Dlugosz, (Wed Apr 7, 3:00 pm)
Re: ghost refs, Avery Pennarun, (Wed Apr 7, 3:03 pm)
RE: ghost refs, John Dlugosz, (Wed Apr 7, 3:10 pm)
Re: ghost refs, Avery Pennarun, (Wed Apr 7, 3:11 pm)
Re: ghost refs, Jeff King, (Wed Apr 7, 9:30 pm)
RE: ghost refs, John Dlugosz, (Thu Apr 8, 9:07 am)
Re: ghost refs, Junio C Hamano, (Thu Apr 8, 9:55 am)
Re: ghost refs, Jeff King, (Thu Apr 8, 12:49 pm)
Re: ghost refs, Junio C Hamano, (Thu Apr 8, 1:42 pm)
Re: ghost refs, Avery Pennarun, (Thu Apr 8, 3:14 pm)
Re: ghost refs, Nicolas Sebrecht, (Thu Apr 8, 4:04 pm)
Re: ghost refs, Jeff King, (Sat Apr 17, 4:51 am)
Re: ghost refs, Junio C Hamano, (Sat Apr 17, 9:32 am)
Re: Git documentation writing guidelines, Junio C Hamano, (Sat Apr 17, 5:28 pm)
RE: ghost refs, John Dlugosz, (Mon Apr 19, 8:33 am)
Re: ghost refs, Yann Dirson, (Tue Apr 20, 12:02 am)
Re: ghost refs, Jeff King, (Tue Apr 20, 4:51 am)
Re: ghost refs, Zefram, (Tue Apr 20, 5:02 am)
Re: ghost refs, Yann Dirson, (Tue Apr 20, 6:00 am)
Re: ghost refs, Zefram, (Tue Apr 20, 6:14 am)
Re: ghost refs, Jay Soffian, (Tue Apr 20, 6:33 am)
Re: ghost refs, Jeff King, (Tue Apr 20, 7:24 am)
Re: ghost refs, Yann Dirson, (Tue Apr 20, 7:42 am)
Re: ghost refs, Jay Soffian, (Tue Apr 20, 7:52 am)
Re: ghost refs, Alex Riesen, (Tue Apr 20, 8:03 am)
Re: ghost refs, Jeff King, (Tue Apr 20, 8:10 am)