如何在没有提交消息的情况下获取 git log [英] how to get git log without the commit message
问题描述
我只想获得 git log
没有 additions
和 deletions
没有 author
,date
、commit hash
和 commit message
详细信息,用于标识修改了多少行代码.目前,我可以使用以下 bash
命令
I want to get the git log
only with the no of additions
and deletions
without the author
, date
,commit hash
and the commit message
details, for identifying how many lines of codes have been modified.
Currently I am being able to remove all the above except the commit message
by using the following bash
command
git log origin/master --numstat --since="2 weeks ago" --no-merges | egrep -v 'Author|Date|commit
上面的输出如下
为 IDENTITY-3591 添加测试用例
Adding test case for IDENTITY-3591
4 0 modules/integration/tests-common/admin-clients/pom.xml129 0 模块/integration/tests-common/admin-clients/src/main/java/org/wso2/identity/integration/common/clients/challenge/questions/mgt/ChallengeQuestionMgtAdminClient.java223 0 modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/challenge/questions/mgt/ChallengeQuestionManagementAdminServiceTestCase.java2 0 模块/integration/tests-integration/tests-backend/src/test/resources/testng.xml5 0 pom.xml
4 0 modules/integration/tests-common/admin-clients/pom.xml 129 0 modules/integration/tests-common/admin-clients/src/main/java/org/wso2/identity/integration/common/clients/challenge/questions/mgt/ChallengeQuestionMgtAdminClient.java 223 0 modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/challenge/questions/mgt/ChallengeQuestionManagementAdminServiceTestCase.java 2 0 modules/integration/tests-integration/tests-backend/src/test/resources/testng.xml 5 0 pom.xml
更新 SAML 元数据版本
Updating SAML metadata version
10 10 个模块/p2-profile-gen/pom.xml 2 2 pom.xml
10 10 modules/p2-profile-gen/pom.xml 2 2 pom.xml
更新依赖版本
4 4 pom.xml
4 4 pom.xml
更改 carbon.xml 中要从项目版本中选取的 version 标记的值
Changing value of the version tag in carbon.xml to be picked from the project version
1 0 个模块/分发版/pom.xml
1 0 modules/distribution/pom.xml
修复 carbon.identity.auth.version 名称
Fixing carbon.identity.auth.version name
1 1 pom.xml
1 1 pom.xml
降级 identity.data.publisher.oauth.version 以避免测试失败
Downgrading identity.data.publisher.oauth.version to avoid test failures
1 1 pom.xml
1 1 pom.xml
将依赖项更新到最新版本.
Update dependencies to latest versions.
10 8 pom.xml
10 8 pom.xml
为 maven 版本插件使用的每个版本属性添加依赖项.
Adding dependencies for each version property to be used by maven version plugin.
29 28 个模块/p2-profile-gen/pom.xml 175 4 pom.xml
29 28 modules/p2-profile-gen/pom.xml 175 4 pom.xml
如何在没有提交消息
的情况下获得输出?提前致谢
How can I get the output without the commit message
? Thanks in advance
推荐答案
您可以:
$ git log --stat --format="%H"
您可以根据需要对其进行自定义.这里
You can customize it as you needed. Here
$ git log --pretty=format:"%h $ad- %s [%an]"
Here:
- %ad = author date
- %an = author name
- %h = commit hash (short)
- %H = commit hash (full)
- %s = subject
- %d = ref names
Git 的漂亮文档 列出了所有占位符.
这篇关于如何在没有提交消息的情况下获取 git log的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!