Re: [PATCH] builtin-branch - allow deleting a fully specified branch-name
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 10, 2009, 00:39 UTC
- Message-ID
- <7vhc0x1gvh.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1239323335-4684-1-git-send-email-mlevedahl@gmail.com>
Mark Levedahl <mlevedahl@gmail.com> writes:
Show 6 quoted lines
> This change allows, for instance > git branch -d refs/heads/foo > to succeed. Without this patch, the code just assumes that the > given branch name should be appended to "refs/heads" or > "refs/remotes", thus attempting (and failing) in the above case > to delete "refs/heads/refs/heads/foo"
Your logic is broken.
Why doesn't the user simply say "git branch -d foo"? The command takes "the branch name", not "arbitrary ref name".