summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid_Kågedal <davidk@lysator.liu.se>2005-09-07 07:29:20 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-07 21:29:50 (GMT)
commit7eb93c89651c47c8095d476251f2e4314656b292 (patch)
tree14800df60d9ae28594954b14004525bcfaa15bc1
parent452ce291a99131768e2d61d2dcf8a4a1b78d39a3 (diff)
downloadgit-7eb93c89651c47c8095d476251f2e4314656b292.zip
git-7eb93c89651c47c8095d476251f2e4314656b292.tar.gz
git-7eb93c89651c47c8095d476251f2e4314656b292.tar.bz2
[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>
-rwxr-xr-xgit4
1 files changed, 1 insertions, 3 deletions
diff --git a/git b/git
index 0d8b382..476aeec 100755
--- a/git
+++ b/git
@@ -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