summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar David_Kågedal <davidk@lysator.liu.se>2005-09-07 09:29:20 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2005-09-07 14:29:50 -0700
commit7eb93c89651c47c8095d476251f2e4314656b292 (patch)
tree14800df60d9ae28594954b14004525bcfaa15bc1
parentDocumentation updates. (diff)
downloadtgif-7eb93c89651c47c8095d476251f2e4314656b292.tar.xz
[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 0d8b382aa9..476aeec279 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