зеркало из https://github.com/microsoft/git.git
[PATCH] Simplify git script
The code for listing the available subcommands was unnecessarily complex. Signed-off-by: David Kgedal <davidk@lysator.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
452ce291a9
Коммит
7eb93c8965
4
git
4
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче