summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 007e2ba)
raw | patch | inline | side by side (parent: 007e2ba)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 25 Jan 2007 17:40:03 +0000 (12:40 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 26 Jan 2007 08:08:48 +0000 (00:08 -0800) |
Junio added the found variable to enforce commit date order when two
tags have the same distance from the requested commit. Except it is
unnecessary as match_cnt is already used to record how many possible
tags have been identified thus far.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
tags have the same distance from the requested commit. Except it is
unnecessary as match_cnt is already used to record how many possible
tags have been identified thus far.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-describe.c | patch | blob | history |
diff --git a/builtin-describe.c b/builtin-describe.c
index e7b8f95c81eb844d152b58e539e586ab4ddada41..4921eee9e2170dd29b546cb2ac3ed53a78655040 100644 (file)
--- a/builtin-describe.c
+++ b/builtin-describe.c
struct possible_tag all_matches[MAX_TAGS];
unsigned int match_cnt = 0, annotated_cnt = 0, cur_match;
unsigned long seen_commits = 0;
- int found = 0;
if (get_sha1(arg, sha1))
die("Not a valid object name %s", arg);
t->name = n;
t->depth = seen_commits - 1;
t->flag_within = 1u << match_cnt;
- t->found_order = found++;
+ t->found_order = match_cnt;
c->object.flags |= t->flag_within;
if (n->prio == 2)
annotated_cnt++;