Skip to content

Commit 94a1380

Browse files
peffgitster
authored andcommitted
doc/git-branch: remove obsolete "-l" references
The previous commit switched "-l" to meaning "--list", but a few vestiges of its prior meaning as "--create-reflog" remained: - the synopsis mentioned "-l" when creating a new branch; we can drop this entirely, as it has been the default for years - the --list command mentions the unfortunate "-l" confusion, but we've now fixed that Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a15d598 commit 94a1380

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Documentation/git-branch.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SYNOPSIS
1414
[(--merged | --no-merged) [<commit>]]
1515
[--contains [<commit]] [--no-contains [<commit>]]
1616
[--points-at <object>] [--format=<format>] [<pattern>...]
17-
'git branch' [--track | --no-track] [-l] [-f] <branchname> [<start-point>]
17+
'git branch' [--track | --no-track] [-f] <branchname> [<start-point>]
1818
'git branch' (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>]
1919
'git branch' --unset-upstream [<branchname>]
2020
'git branch' (-m | -M) [<oldbranch>] <newbranch>
@@ -159,10 +159,6 @@ This option is only applicable in non-verbose mode.
159159
List branches. With optional `<pattern>...`, e.g. `git
160160
branch --list 'maint-*'`, list only the branches that match
161161
the pattern(s).
162-
+
163-
This should not be confused with `git branch -l <branchname>`,
164-
which creates a branch named `<branchname>` with a reflog.
165-
See `--create-reflog` above for details.
166162

167163
-v::
168164
-vv::

0 commit comments

Comments
 (0)