summaryrefslogtreecommitdiff
path: root/Documentation/git-branch.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-06-22 09:24:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-22 20:20:51 (GMT)
commita15d598124813a71f0a221b4fcabeb75f40aebd7 (patch)
tree6e45ff9656d9831efbf91f85ed5ef0e1aa5f3b49 /Documentation/git-branch.txt
parent055930bc8960c303ece01d9a34740f25a2a6bba6 (diff)
downloadgit-a15d598124813a71f0a221b4fcabeb75f40aebd7.zip
git-a15d598124813a71f0a221b4fcabeb75f40aebd7.tar.gz
git-a15d598124813a71f0a221b4fcabeb75f40aebd7.tar.bz2
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-branch.txt')
-rw-r--r--Documentation/git-branch.txt3
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
`core.logAllRefUpdates`.
-+
-The `-l` option is a deprecated synonym for `--create-reflog`.
-f::
--force::
@@ -156,6 +154,7 @@ This option is only applicable in non-verbose mode.
--all::
List both remote-tracking branches and local branches.
+-l::
--list::
List branches. With optional `<pattern>...`, e.g. `git
branch --list 'maint-*'`, list only the branches that match