Code

Fix git-for-each-refs broken for tags
authorPetr Baudis <pasky@suse.cz>
Sat, 18 Nov 2006 02:56:52 +0000 (03:56 +0100)
committerJunio C Hamano <junkio@cox.net>
Sat, 18 Nov 2006 19:09:46 +0000 (11:09 -0800)
commitf8290630cb900fc5581e91a4cc055d2fba121db0
tree111aaaf90925655bbf2ea181d24fdf7359820eef
parent6b1f8c32b1a602734f14b9cf8a9f59a767752677
Fix git-for-each-refs broken for tags

Unfortunately, git-for-each-refs is currently unusable for peeking into tag
comments, since it uses freed pointers, so it just prints out all sort of
garbage.

This makes it strdup() contents and body values.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-for-each-ref.c