about summary refs log tree commit diff
path: root/Functions/Misc/run-help-git
diff options
context:
space:
mode:
authorMarlon Richert <marlon.richert@gmail.com>2021-09-06 13:45:36 -0700
committerBart Schaefer <schaefer@ipost.com>2021-09-06 13:47:10 -0700
commit1508dc7486636edcb54e81f6a2fcf0faf180c7fa (patch)
treecdab91cbac7e0c0b1268111ab0266173b11a4da7 /Functions/Misc/run-help-git
parent35c87f0b3bc0ce5a22a6bf3b0f2b2a14a3993cea (diff)
downloadzsh-1508dc7486636edcb54e81f6a2fcf0faf180c7fa.tar.gz
zsh-1508dc7486636edcb54e81f6a2fcf0faf180c7fa.tar.xz
zsh-1508dc7486636edcb54e81f6a2fcf0faf180c7fa.zip
49218: run-help filters cmd_args before calling run-help-<command>
Diffstat (limited to 'Functions/Misc/run-help-git')
-rw-r--r--Functions/Misc/run-help-git10
1 files changed, 1 insertions, 9 deletions
diff --git a/Functions/Misc/run-help-git b/Functions/Misc/run-help-git
index ce94d0d02..a841f89d6 100644
--- a/Functions/Misc/run-help-git
+++ b/Functions/Misc/run-help-git
@@ -1,9 +1 @@
-if [ $# -eq 0 ]; then
-    man git
-else
-    local al
-    if al=$(git config --get "alias.$1"); then
-        1=${al%% *}
-    fi
-    man git-$1
-fi
+git help ${1:-git}