From: Junio C Hamano Date: Fri, 24 Mar 2017 04:17:00 +0000 (-0700) Subject: branch doc: update description for `--list` X-Git-Tag: v2.13.0-rc0~56^2 X-Git-Url: http://git.bitbasher.net/?a=commitdiff_plain;h=75ec4a6cb0921688d01a7e7800a5dd5d9f1ad586;p=git.git branch doc: update description for `--list` The paragraph begins with a sample command line `git branch ` that has nothing to do with the option being described. Remove it, but use the space to instead show that multiple patterns can be given. Also mention the unfortunate `-l` that can be easily confused with it. Signed-off-by: Junio C Hamano Reviewed-by: Jonathan Nieder Reviewed-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index 6a17ca591a..514b0d0b91 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 ` would try to create a branch, - use `git branch --list ` to list matching branches. + List branches. With optional `...`, e.g. `git + branch --list 'maint-*'`, list only the branches that match + the pattern(s). ++ +This should not be confused with `git branch -l `, +which creates a branch named `` with a reflog. +See `--create-reflog` above for details. -v:: -vv::