Commits

Anonymous committed 7eb93c8

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

  • Participants
  • Parent commits 452ce29

Comments (0)

Files changed (1)

     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