Skip to content

Commit 8048e24

Browse files
author
Junio C Hamano
committed
show-branch: match documentation and usage
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent bf928e9 commit 8048e24

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Documentation/git-show-branch.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ OPTIONS
5252
appear in topological order (i.e., descendant commits
5353
are shown before their parents).
5454

55+
--sparse::
56+
By default, the output omits merges that are reachable
57+
from only one tip being shown. This option makes them
58+
visible.
59+
5560
--more=<n>::
5661
Usually the command stops output upon showing the commit
5762
that is the common ancestor of all the branches. This

builtin-show-branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "builtin.h"
77

88
static const char show_branch_usage[] =
9-
"git-show-branch [--dense] [--current] [--all] [--heads] [--tags] [--topo-order] [--more=count | --list | --independent | --merge-base ] [--topics] [<refs>...]";
9+
"git-show-branch [--sparse] [--current] [--all] [--heads] [--tags] [--topo-order] [--more=count | --list | --independent | --merge-base ] [--topics] [<refs>...]";
1010

1111
static int default_num = 0;
1212
static int default_alloc = 0;

0 commit comments

Comments
 (0)