]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/show-branch.c
show-branch: usability updates.
authorJunio C Hamano <junkio@cox.net>
Fri, 23 Dec 2005 20:47:18 +0000 (12:47 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Dec 2005 22:16:19 +0000 (14:16 -0800)
commitbb5ebed731378f9ebec9bcd438aa69e086d73359
treeebcaf1f0fcb2842380bd08600c280950264f6bd4
parentc5ced64578a82b9d172aceb2f67c6fb9e639f6d9
show-branch: usability updates.

This does three things:

 . It simplifies the logic to handle the case in which no
   refs are given on the command line, and fixes the bug
   when only "--heads" is specified.  Earlier we showed
   them twice.

 . It avoids to add the same ref twice.

 . It sorts the glob result (e.g. "git show-branch
   'tags/v1.0*'") according to a more version friendly
   sort order.

Signed-off-by: Junio C Hamano <junkio@cox.net>
show-branch.c