summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 452ce29)
raw | patch | inline | side by side (parent: 452ce29)
author | David_Kågedal <davidk@lysator.liu.se> | |
Wed, 7 Sep 2005 07:29:20 +0000 (09:29 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 7 Sep 2005 21:29:50 +0000 (14:29 -0700) |
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>
complex.
Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git | patch | blob | history |
index 0d8b382aa9a804cd3ec54591d78d8ad9b1b8766b..476aeec2791971f38daeebb8c2b7ab9854229944 100755 (executable)
--- a/git
+++ b/git
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