branch: don't fail listing branches if one of the commits wasn't found
commit0e9716e65e40883759082b35e90113d0d0c8f7a6
authorSimo Melenius <simo.melenius@iki.fi>
Fri, 4 Jun 2010 09:50:11 +0000 (4 12:50 +0300)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jun 2010 22:50:00 +0000 (7 15:50 -0700)
tree65239c4fffe39dce395e71ca74a34622e30804bd
parent1603ade81352a526ccb206f41ff81ecbc855df2d
branch: don't fail listing branches if one of the commits wasn't found

When listing branches with ref lookups, if one of the known raw refs
doesn't point to a commit then "git branch" would return error(),
terminating the whole for_each_rawref() iteration and possibly hiding
any remaining refs.

Signed-off-by: Simo Melenius <simo.melenius@iki.fi>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c