Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Sort globbed refname in show-branch.
[gitweb.git]
/
show-branch.c
diff --git
a/show-branch.c
b/show-branch.c
index ab158eb7d08e9f6fe5c93d660a92c4b97914e516..c7422460be0a68dc34baa1dc8b66aa44559d56de 100644
(file)
--- a/
show-branch.c
+++ b/
show-branch.c
@@
-450,6
+450,8
@@
static void append_one_rev(const char *av)
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);