From: Daniels Umanovskis Date: Tue, 09 Oct 2018 18:31:14 GMT Subject: [PATCH 2/2] doc/git-branch: Document the --current option Message-ID: <20181009183114.16477-2-daniels@umanovskis.se> In-Reply-To: <20181009183114.16477-1-daniels@umanovskis.se> Signed-off-by: Daniels Umanovskis --- Documentation/git-branch.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index bf5316ffa..a7167df74 100644 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@ -9,7 +9,7 @@ SYNOPSIS -------- [verse] 'git branch' [--color[=] | --no-color] [-r | -a] - [--list] [-v [--abbrev= | --no-abbrev]] + [--list] [--current] [-v [--abbrev= | --no-abbrev]] [--column[=] | --no-column] [--sort=] [(--merged | --no-merged) []] [--contains []] @@ -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). +--current:: + Print the name of the current branch. In detached HEAD state, + or if otherwise impossible to resolve the branch name, print + "HEAD". -v:: -vv:: --verbose:: -- 2.19.1.274.g059d67db4.dirty