]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/branch.c
branch: make "-l" a synonym for "--list"
authorJeff King <peff@peff.net>
Fri, 22 Jun 2018 09:24:59 +0000 (05:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Jun 2018 20:20:51 +0000 (13:20 -0700)
commita15d598124813a71f0a221b4fcabeb75f40aebd7
tree6e45ff9656d9831efbf91f85ed5ef0e1aa5f3b49
parent055930bc8960c303ece01d9a34740f25a2a6bba6
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>
Documentation/git-branch.txt
builtin/branch.c