@matheusbsbs / matheus-bagliano / commits / 56a5f3afa7
Fork 0

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 <andersk@ksplice.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Anders Kaseorg committed Dec 9, 2010 at 01:42 UTC 56a5f3afa74c70261dd2319ad76a6810e102026c
1 file changed +1 -1
builtin/describe.c
+1 -1
@@ -418,7 +418,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
418 return cmd_name_rev(i + argc, args, prefix);
419 }
420
421 - for_each_ref(get_name, NULL);
421 + for_each_rawref(get_name, NULL);
422 if (!found_names && !always)
423 die("No names found, cannot describe anything.");
424