author | Simo Melenius <simo.melenius@iki.fi> | |
Fri, 4 Jun 2010 09:50:11 +0000 (12:50 +0300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Jun 2010 22:50:00 +0000 (15:50 -0700) | ||
commit | 0e9716e65e40883759082b35e90113d0d0c8f7a6 | |
tree | 65239c4fffe39dce395e71ca74a34622e30804bd | tree | snapshot |
parent | 1603ade81352a526ccb206f41ff81ecbc855df2d | commit | diff |
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>
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 | diff | blob | history |