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>
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.");