summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Anders Kaseorg <andersk@ksplice.com>2010-12-09 01:42:25 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-12-09 11:20:25 -0800
commit56a5f3afa74c70261dd2319ad76a6810e102026c (patch)
treef49156d35a6e609739d336657a49144bb1e24d21
parentGit 1.7.3.3 (diff)
downloadtgif-56a5f3afa74c70261dd2319ad76a6810e102026c.tar.xz
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>
-rw-r--r--builtin/describe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/describe.c b/builtin/describe.c
index 43caff2ffe..700f740154 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.");