diff options
author | David_Kågedal <davidk@lysator.liu.se> | 2005-09-07 09:29:20 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-07 14:29:50 -0700 |
commit | 7eb93c89651c47c8095d476251f2e4314656b292 (patch) | |
tree | 14800df60d9ae28594954b14004525bcfaa15bc1 | |
parent | Documentation updates. (diff) | |
download | tgif-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-x | git | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |