path: root/Documentation
diff options
authorNickolai Belakovski <>2019-04-29 05:19:44 (GMT)
committerJunio C Hamano <>2019-05-07 04:45:55 (GMT)
commit6e9381469e3bd866e73affe6d9d96206ee7ff965 (patch)
treed24a25b1472db7119a46864b4834cc0e6934266a /Documentation
parentab3138146f9ce1d819cefab4515965604de76d9d (diff)
branch: add worktree info on verbose output
To display worktree path for refs checked out in a linked worktree Signed-off-by: Nickolai Belakovski <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation')
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
index 7d18dff..d11d005 100644
--- a/Documentation/git-branch.txt
+++ b/Documentation/git-branch.txt
@@ -172,8 +172,10 @@ This option is only applicable in non-verbose mode.
When in list mode,
show sha1 and commit subject line for each head, along with
relationship to upstream branch (if any). If given twice, print
- the name of the upstream branch, as well (see also `git remote
- show <remote>`).
+ the path of the linked worktree (if any) and the name of the upstream
+ branch, as well (see also `git remote show <remote>`). Note that the
+ current worktree's HEAD will not have its path printed (it will always
+ be your current directory).