author | Miklos Vajna <vmiklos@frugalware.org> | |
Sun, 26 Oct 2008 02:33:56 +0000 (03:33 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 26 Oct 2008 21:42:57 +0000 (14:42 -0700) | ||
commit | eca35a25a92a1ad725af2a549fc9158488c4cc43 | |
tree | d598c2304f5c3f6d4bee5aa2cb4ce15fab117bf2 | tree | snapshot |
parent | 031e6c898f61db1ae0c0be641eac6532c1000d56 | commit | diff |
Fix git branch -m for symrefs.
This had two problems with symrefs. First, it copied the actual sha1
instead of the "pointer", second it failed to remove the old ref after a
successful rename.
Given that till now delete_ref() always dereferenced symrefs, a new
parameters has been introduced to delete_ref() to allow deleting refs
without a dereference.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This had two problems with symrefs. First, it copied the actual sha1
instead of the "pointer", second it failed to remove the old ref after a
successful rename.
Given that till now delete_ref() always dereferenced symrefs, a new
parameters has been introduced to delete_ref() to allow deleting refs
without a dereference.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c | diff | blob | history | |
builtin-remote.c | diff | blob | history | |
builtin-reset.c | diff | blob | history | |
builtin-send-pack.c | diff | blob | history | |
builtin-tag.c | diff | blob | history | |
builtin-update-ref.c | diff | blob | history | |
cache.h | diff | blob | history | |
receive-pack.c | diff | blob | history | |
refs.c | diff | blob | history | |
t/t3200-branch.sh | diff | blob | history |