From: Daniels Umanovskis <daniels@umanovskis.se>
To: git@vger.kernel.org
Cc: Daniels Umanovskis <daniels@umanovskis.se>
Subject: [PATCH 2/2] doc/git-branch: Document the --current option
Date: Tue, 9 Oct 2018 20:31:14 +0200 [thread overview]
Message-ID: <20181009183114.16477-2-daniels@umanovskis.se> (raw)
In-Reply-To: <20181009183114.16477-1-daniels@umanovskis.se>
Signed-off-by: Daniels Umanovskis <daniels@umanovskis.se>
---
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[=<when>] | --no-color] [-r | -a]
- [--list] [-v [--abbrev=<length> | --no-abbrev]]
+ [--list] [--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).
+--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
next prev parent reply other threads:[~2018-10-09 18:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-09 18:31 [PATCH 1/2] branch: introduce --current display option Daniels Umanovskis
2018-10-09 18:31 ` Daniels Umanovskis [this message]
2018-10-10 2:48 ` [PATCH 2/2] doc/git-branch: Document the --current option Junio C Hamano
2018-10-09 19:54 ` [PATCH 1/2] branch: introduce --current display option Stefan Beller
2018-10-09 20:21 ` Daniels Umanovskis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181009183114.16477-2-daniels@umanovskis.se \
--to=daniels@umanovskis.se \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).