使用repo forall命令,如何打印shortstat和REPO_PROJECT?
我尝试下面,它没有工作,它只是打印$REPO_PROJECT但不是shortstat.
repo forall -c 'echo $REPO_PROJECT' -c 'git diff --shortstat tagA tagB'
Run Code Online (Sandbox Code Playgroud)
我想要它打印:
project/name
1 file changed, 2 insertions(+), 2 deletions(-)
Run Code Online (Sandbox Code Playgroud)
有一个-p打印项目名称的选项
repo forall -p -c 'git diff --shortstat tagA tagB'
Run Code Online (Sandbox Code Playgroud)
在我的项目中,此命令输出如下内容:
project MTCommonServices/
9 files changed, 274 insertions(+), 216 deletions(-)
project MTConfig/
2 files changed, 12 insertions(+), 2 deletions(-)
project MTModuleOrder/
26 files changed, 764 insertions(+), 160 deletions(-)
project MTModuleProductDetail/
8 files changed, 34 insertions(+), 3 deletions(-)
project MTModuleUser/
18 files changed, 444 insertions(+), 148 deletions(-)
project MaitaoApp/
3 files changed, 137 insertions(+), 111 deletions(-)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3972 次 |
| 最近记录: |