[PATCH v2 1/4] describe: Use for_each_rawref
- From
Anders Kaseorg <andersk@ksplice.com>
- Date
- Dec 8, 2010, 04:42 UTC
- Message-ID
- <alpine.DEB.2.02.1012072341570.23348@dr-wily.mit.edu>
- In-Reply-To
- <alpine.DEB.2.02.1012072204371.23348@dr-wily.mit.edu>
Don’t waste time checking for dangling refs; they wouldn’t affect the output of ‘git describe’ anyway. Although this doesn’t gain much performance by itself, it does in conjunction with the next commits.
Signed-off-by: Anders Kaseorg <andersk@ksplice.com> --- builtin/describe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin/describe.c b/builtin/describe.c index 43caff2..700f740 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.");
-- 1.7.3.3