Code

git branch -m: forbid renaming of a symref
authorMiklos Vajna <vmiklos@frugalware.org>
Wed, 29 Oct 2008 00:05:27 +0000 (01:05 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Oct 2008 20:50:48 +0000 (13:50 -0700)
commitfa58186c9ba50514b36ac5ef192cd7e0bc4d7780
treed8d68a5bfef9f96471195a93f8c30fbe6c5debf0
parent569740bdd0533ef5cf032edd6233710161a35725
git branch -m: forbid renaming of a symref

There may be cases where one would really want to rename the symbolic
ref without changing its value, but "git branch -m" is not such a
use-case.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
t/t3200-branch.sh