Skip to content

Commit d4ce5f7

Browse files
Nikolai WeibullJunio C Hamano
authored andcommitted
Add documentation for the --topo-order option to git-show-branch.
Signed-off-by: Nikolai Weibull <nikolai@bitwi.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 674b280 commit d4ce5f7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Documentation/git-show-branch.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ git-show-branch - Show branches and their commits.
77

88
SYNOPSIS
99
--------
10-
'git-show-branch [--all] [--heads] [--tags] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [<rev> | <glob>]...'
10+
'git-show-branch [--all] [--heads] [--tags] [--topo-order] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [<rev> | <glob>]...'
1111

1212
DESCRIPTION
1313
-----------
@@ -35,6 +35,12 @@ OPTIONS
3535
Show all refs under $GIT_DIR/refs, $GIT_DIR/refs/heads,
3636
and $GIT_DIR/refs/tags, respectively.
3737

38+
--topo-order::
39+
By default, the branches and their commits are shown in
40+
reverse chronological order. This option makes them
41+
appear in topological order (i.e., descendant commits
42+
are shown before their parents).
43+
3844
--more=<n>::
3945
Usually the command stops output upon showing the commit
4046
that is the common ancestor of all the branches. This

show-branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "refs.h"
66

77
static const char show_branch_usage[] =
8-
"git-show-branch [--all] [--heads] [--tags] [--more=count | --list | --independent | --merge-base ] [<refs>...]";
8+
"git-show-branch [--all] [--heads] [--tags] [--topo-order] [--more=count | --list | --independent | --merge-base ] [<refs>...]";
99

1010
#define UNINTERESTING 01
1111

0 commit comments

Comments
 (0)