diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-09-29 06:08:14 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-04 04:23:51 (GMT) |
commit | 26c7d0678324d99b56d3044acfdfab57ee670af4 (patch) | |
tree | d17d1d7c0ae3b56c7aedfecd22694a5b26cad922 /t | |
parent | 1d4361b0f344188ab5eec6dcea01f61a3a3a1670 (diff) | |
download | git-26c7d0678324d99b56d3044acfdfab57ee670af4.zip git-26c7d0678324d99b56d3044acfdfab57ee670af4.tar.gz git-26c7d0678324d99b56d3044acfdfab57ee670af4.tar.bz2 |
help -a: improve and make --verbose default
When you type "git help" (or just "git") you are greeted with a list
with commonly used commands and their short description and are
suggested to use "git help -a" or "git help -g" for more details.
"git help -av" would be more friendly and inline with what is shown
with "git help" since it shows list of commands with description as
well, and commands are properly grouped.
"help -av" does not show everything "help -a" shows though. Add
external command section in "help -av" for this. While at there, add a
section for aliases as well (until now aliases have no UI, just "git
config").
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t0012-help.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0012-help.sh b/t/t0012-help.sh index bc27df7..e8ef730 100755 --- a/t/t0012-help.sh +++ b/t/t0012-help.sh @@ -29,9 +29,9 @@ test_expect_success "setup" ' # to verify test_expect_success 'basic help commands' ' git help >/dev/null && - git help -a >/dev/null && + git help -a --no-verbose >/dev/null && git help -g >/dev/null && - git help -av >/dev/null + git help -a >/dev/null ' test_expect_success "works for commands and guides by default" ' |