Skip to content

Commit

Permalink
Documentation: show-branch.
Browse files Browse the repository at this point in the history
Describe showbranch.default configuration item and give an example.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 15, 2006
1 parent 9e9b267 commit 54f9734
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion Documentation/git-show-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ and/or $GIT_DIR/refs/tags) semi-visually.

It cannot show more than 29 branches and commits at a time.

It uses `showbranch.default` multi-valued configuration items if
no <rev> nor <glob> is given on the command line.


OPTIONS
-------
Expand Down Expand Up @@ -50,7 +53,7 @@ OPTIONS
tree.

--list::
Synomym to `--more=-1`
Synonym to `--more=-1`

--merge-base::
Instead of showing the commit list, just act like the
Expand Down Expand Up @@ -115,6 +118,25 @@ adds one commit 'Introduce "reset type"'. "mhf" branch has many
other commits.


EXAMPLE
-------

If you keep your primary branches immediately under
`$GIT_DIR/refs/heads`, and topic branches in subdirectories of
it, having the following in the configuration file may help:

------------
[showbranch]
default = --topo-order
default = heads/*

------------

With this,`git show-branch` without extra parameters would show
only the primary branches.



Author
------
Written by Junio C Hamano <junkio@cox.net>
Expand Down

0 comments on commit 54f9734

Please sign in to comment.