From 7eb93c89651c47c8095d476251f2e4314656b292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=5FK=E5gedal?= Date: Wed, 7 Sep 2005 09:29:20 +0200 Subject: [PATCH] [PATCH] Simplify git script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code for listing the available subcommands was unnecessarily complex. Signed-off-by: David Kågedal Signed-off-by: Junio C Hamano --- git | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/git b/git index 0d8b382aa9..476aeec279 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