diff options
author | Jeff King <peff@peff.net> | 2018-06-22 05:24:59 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-22 13:20:51 -0700 |
commit | a15d598124813a71f0a221b4fcabeb75f40aebd7 (patch) | |
tree | 6e45ff9656d9831efbf91f85ed5ef0e1aa5f3b49 /Documentation/git-branch.txt | |
parent | branch: deprecate "-l" option (diff) | |
download | tgif-a15d598124813a71f0a221b4fcabeb75f40aebd7.tar.xz |
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.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index 1072ca0eb6..fc88e984e1 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 |