提交 56a5f3af 编写于 作者: A Anders Kaseorg 提交者: Junio C Hamano

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: NAnders Kaseorg <andersk@ksplice.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 6079ec66
......@@ -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.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册