Code

show-branch: --current includes the current branch.
authorJunio C Hamano <junkio@cox.net>
Wed, 11 Jan 2006 08:16:42 +0000 (00:16 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 15 Jan 2006 08:04:23 +0000 (00:04 -0800)
commit1aa68d67358be1ee20da57b0c3bd1f9863fe41a4
tree0eec4370d640c490c8628f6dc8e4d19e4400c5e4
parentebedc3195258a6382f58c8c6b54b21db922440af
show-branch: --current includes the current branch.

With this, the command includes the current branch to the list
of revs to be shown when it is not given on the command line.
This is handy to use in the configuration file like this:

[showbranch]
default = --current
default = heads/* ; primary branches, not topics under
; subdirectories

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