path: root/Documentation/git-branch.txt
diff options
authorJeff King <>2018-06-22 09:24:59 (GMT)
committerJunio C Hamano <>2018-06-22 20:20:51 (GMT)
commita15d598124813a71f0a221b4fcabeb75f40aebd7 (patch)
tree6e45ff9656d9831efbf91f85ed5ef0e1aa5f3b49 /Documentation/git-branch.txt
parent055930bc8960c303ece01d9a34740f25a2a6bba6 (diff)
branch: make "-l" a synonym for "--list"
The other "mode" options of git-branch have short-option aliases that are easy to type (e.g., "-d" and "-m"). Let's give "--list" the same treatment. This also makes it consistent with the similar "git tag -l" option. We didn't do this originally because "--create-reflog" was squatting on the "-l" option. Now that we've deprecated that use for long enough, we can make the switch. Signed-off-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-branch.txt')
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
index 1072ca0..fc88e98 100644
--- a/Documentation/git-branch.txt
+++ b/Documentation/git-branch.txt
@@ -100,8 +100,6 @@ OPTIONS
The negated form `--no-create-reflog` only overrides an earlier
`--create-reflog`, but currently does not negate the setting of
-The `-l` option is a deprecated synonym for `--create-reflog`.
@@ -156,6 +154,7 @@ This option is only applicable in non-verbose mode.
List both remote-tracking branches and local branches.
List branches. With optional `<pattern>...`, e.g. `git
branch --list 'maint-*'`, list only the branches that match