From: David_Kågedal Date: Wed, 7 Sep 2005 07:29:20 +0000 (+0200) Subject: [PATCH] Simplify git script X-Git-Tag: v0.99.6~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7eb93c89651c47c8095d476251f2e4314656b292;p=git.git [PATCH] Simplify git script The code for listing the available subcommands was unnecessarily complex. Signed-off-by: David Kågedal Signed-off-by: Junio C Hamano --- diff --git a/git b/git index 0d8b382aa..476aeec27 100755 --- a/git +++ b/git @@ -17,6 +17,4 @@ else echo " git commands are:" fi -alternatives=$(cd $path && - ls git-*-script | sed -e 's/git-//' -e 's/-script//') -echo $alternatives | fmt | sed 's/^/ /' +ls $path | sed -ne 's/^git-\(.*\)-script/ \1/p' | fmt