aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-branch.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-28 14:05:59 -0700
committerJunio C Hamano <gitster@pobox.com>2017-03-28 14:05:59 -0700
commite779b0f0703d1e85e35b2772ae458e89eca0f0d3 (patch)
tree4a841bc63f3c4b4dd83086e1b2c603639fabaa18 /Documentation/git-branch.txt
parent6a5ff7acb5965718cc7016c0ab6c601454fd7cde (diff)
parent75ec4a6cb0921688d01a7e7800a5dd5d9f1ad586 (diff)
downloadgit-e779b0f0703d1e85e35b2772ae458e89eca0f0d3.tar.gz
Merge branch 'ab/branch-list-doc'
Doc update. * ab/branch-list-doc: branch doc: update description for `--list` branch doc: change `git branch <pattern>` to use `<branchname>`
Diffstat (limited to 'Documentation/git-branch.txt')
-rw-r--r--Documentation/git-branch.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
index 092f1bcf9f..c203e8c073 100644
--- a/Documentation/git-branch.txt
+++ b/Documentation/git-branch.txt
@@ -142,8 +142,13 @@ This option is only applicable in non-verbose mode.
List both remote-tracking branches and local branches.
--list::
- Activate the list mode. `git branch <pattern>` would try to create a branch,
- use `git branch --list <pattern>` to list matching branches.
+ List branches. With optional `<pattern>...`, e.g. `git
+ branch --list 'maint-*'`, list only the branches that match
+ the pattern(s).
++
+This should not be confused with `git branch -l <branchname>`,
+which creates a branch named `<branchname>` with a reflog.
+See `--create-reflog` above for details.
-v::
-vv::