Browse Source

[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 19 years ago committed by Junio C Hamano
parent
commit
7eb93c8965
  1. 4
      git

4
git

@ -17,6 +17,4 @@ else
echo " git commands are:" echo " git commands are:"
fi fi


alternatives=$(cd $path && ls $path | sed -ne 's/^git-\(.*\)-script/ \1/p' | fmt
ls git-*-script | sed -e 's/git-//' -e 's/-script//')
echo $alternatives | fmt | sed 's/^/ /'

Loading…
Cancel
Save