[PATCH] Simplify git script

The code for listing the available subcommands was unnecessarily
complex.

Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
David_Kågedal 2005-09-07 09:29:20 +02:00 committed by Junio C Hamano
parent 452ce291a9
commit 7eb93c8965
1 changed files with 1 additions and 3 deletions

4
git
View File

@ -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