[PATCH] Simplify git script

The code for listing the available subcommands was unnecessarily
complex.

Signed-off-by: David Kgedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
David_Kgedal 2005-09-07 09:29:20 +02:00 committed by Junio C Hamano
parent 452ce291a9
commit 7eb93c8965

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