Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid_Kågedal <davidk@lysator.liu.se>2005-09-07 11:29:20 +0400
committerJunio C Hamano <junkio@cox.net>2005-09-08 01:29:50 +0400
commit7eb93c89651c47c8095d476251f2e4314656b292 (patch)
tree14800df60d9ae28594954b14004525bcfaa15bc1
parent452ce291a99131768e2d61d2dcf8a4a1b78d39a3 (diff)
[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