summaryrefslogtreecommitdiff
path: root/describe.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-07 18:52:42 -0800
committerJunio C Hamano <junkio@cox.net>2006-01-07 21:43:01 -0800
commitf8f9c73c7d835ec1e5b665c66623aed49fcd4888 (patch)
tree64fc23b181b3c0e9b5a6edaa8c65a0035c857c63 /describe.c
parent78c2cff61f87d43c1f4ef5a03547f093c4c6e0c9 (diff)
downloadgit-f8f9c73c7d835ec1e5b665c66623aed49fcd4888.tar.gz
describe: allow more than one revs to be named.
The main loop was prepared to take more than one revs, but the actual naming logic wad not (it used pop_most_recent_commit while forgetting that the commit marks stay after it's done). Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'describe.c')
-rw-r--r--describe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/describe.c b/describe.c
index 84d96b5b82..00fa02adcc 100644
--- a/describe.c
+++ b/describe.c
@@ -124,9 +124,10 @@ static void describe(struct commit *cmit)
if (n) {
printf("%s-g%s\n", n->path,
find_unique_abbrev(cmit->object.sha1, abbrev));
- return;
+ break;
}
}
+ clear_commit_marks(cmit, SEEN);
}
int main(int argc, char **argv)