summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e5e3a9d)
raw | patch | inline | side by side (parent: e5e3a9d)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 16 Dec 2005 01:53:44 +0000 (17:53 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 16 Dec 2005 01:53:44 +0000 (17:53 -0800) |
"git show-branch bugs/*" shows all branches whose name match the
specified pattern, but in the order readdir() happened to
returned. Sort them to make the output more predictable.
Signed-off-by: Junio C Hamano <junkio@cox.net>
specified pattern, but in the order readdir() happened to
returned. Sort them to make the output more predictable.
Signed-off-by: Junio C Hamano <junkio@cox.net>
show-branch.c | patch | blob | history |
diff --git a/show-branch.c b/show-branch.c
index ab158eb7d08e9f6fe5c93d660a92c4b97914e516..c7422460be0a68dc34baa1dc8b66aa44559d56de 100644 (file)
--- a/show-branch.c
+++ b/show-branch.c
if (saved_matches == ref_name_cnt &&
ref_name_cnt < MAX_REVS)
error("no matching refs with %s", av);
+ if (saved_matches + 1 < ref_name_cnt)
+ sort_ref_range(saved_matches, ref_name_cnt);
return;
}
die("bad sha1 reference %s", av);