From: Anders Kaseorg Date: Thu, 9 Dec 2010 06:42:25 +0000 (-0500) Subject: describe: Use for_each_rawref X-Git-Tag: v1.7.4-rc0~35^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=56a5f3afa74c70261dd2319ad76a6810e102026c;p=git.git describe: Use for_each_rawref Don't waste time checking for dangling refs; they wouldn't affect the output of 'git describe' anyway. Although this does not gain much performance by itself, it does in conjunction with the next commits. Signed-off-by: Anders Kaseorg Signed-off-by: Junio C Hamano --- diff --git a/builtin/describe.c b/builtin/describe.c index 43caff2ff..700f74015 100644 --- a/builtin/describe.c +++ b/builtin/describe.c @@ -418,7 +418,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix) return cmd_name_rev(i + argc, args, prefix); } - for_each_ref(get_name, NULL); + for_each_rawref(get_name, NULL); if (!found_names && !always) die("No names found, cannot describe anything.");