Skip to content

Commit 56a5f3a

Browse files
anderskgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6079ec6 commit 56a5f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
418418
return cmd_name_rev(i + argc, args, prefix);
419419
}
420420

421-
for_each_ref(get_name, NULL);
421+
for_each_rawref(get_name, NULL);
422422
if (!found_names && !always)
423423
die("No names found, cannot describe anything.");
424424

0 commit comments

Comments
 (0)