Git 格式化补丁不显示在 Jenkins 控制台中

Git format patch to not display in Jenkins console

我在 Jenkins 作业中使用 git format patch [commit_id],它生成的补丁数量如下所示:

git format patch 198h2idn3912

这会生成 4 个补丁

0001-Test1.patch<br>
0002-Test2.patch<br>
0003-Test3.patch<br>
0004-Test4.patch`<br>

以上显示在 Jenkins 控制台中。

我的要求是生成相同的补丁,但它不应显示在控制台中,因为如果有 1000 或更多数量的补丁,那么控制台会变大并且变得难以打开。

你有 option --quiet:

-q
--quiet

Do not print the names of the generated files to standard output.

这样就不需要输出重定向了。