summaryrefslogtreecommitdiff
path: root/Documentation/git-branch.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-03-07 00:59:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-03-07 00:59:54 (GMT)
commit3710f60a808ad79bfa604405a725e7accc64f743 (patch)
treecc7f02218768e80d8210f4429308f6d925b9163e /Documentation/git-branch.txt
parent26e3ddcd7530dbb5f7748970ff16120e47d58f31 (diff)
parent0ecb1fc7269e15be890870937b8b639c987abd08 (diff)
downloadgit-3710f60a808ad79bfa604405a725e7accc64f743.zip
git-3710f60a808ad79bfa604405a725e7accc64f743.tar.gz
git-3710f60a808ad79bfa604405a725e7accc64f743.tar.bz2
Merge branch 'du/branch-show-current'
"git branch" learned a new subcommand "--show-current". * du/branch-show-current: branch: introduce --show-current display option
Diffstat (limited to 'Documentation/git-branch.txt')
-rw-r--r--Documentation/git-branch.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
index 3bd83a7..0cd87dd 100644
--- a/Documentation/git-branch.txt
+++ b/Documentation/git-branch.txt
@@ -9,7 +9,7 @@ SYNOPSIS
--------
[verse]
'git branch' [--color[=<when>] | --no-color] [-r | -a]
- [--list] [-v [--abbrev=<length> | --no-abbrev]]
+ [--list] [--show-current] [-v [--abbrev=<length> | --no-abbrev]]
[--column[=<options>] | --no-column] [--sort=<key>]
[(--merged | --no-merged) [<commit>]]
[--contains [<commit]] [--no-contains [<commit>]]
@@ -160,6 +160,10 @@ This option is only applicable in non-verbose mode.
branch --list 'maint-*'`, list only the branches that match
the pattern(s).
+--show-current::
+ Print the name of the current branch. In detached HEAD state,
+ nothing is printed.
+
-v::
-vv::
--verbose::