提交 7eb93c89 编写于 作者: D David_Kgedal 提交者: Junio C Hamano

[PATCH] Simplify git script

The code for listing the available subcommands was unnecessarily
complex.
Signed-off-by: NDavid Kgedal <davidk@lysator.liu.se>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 452ce291
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册