我正在开发一个git存储库,其中包含大量文件,一个提交到另一个提交,如何提取文件数改变b/w提交.
我想用git命令行得到这种输出:
bcfd649de8850e3bfc9584eb12be8fe136ca6985 3 files changed, 8 insertions(+), 1 deletion(-)
Run Code Online (Sandbox Code Playgroud)
我目前正在使用git log --shortstat --reverse --pretty=oneline,但实际上不是一行,注释对我来说毫无用处:
bcfd649de8850e3bfc9584eb12be8fe136ca6985 Added ActionController#cookies[] as a reader for @cookies that'll return the value of the cookie instead of
3 files changed, 8 insertions(+), 1 deletions(-)
Run Code Online (Sandbox Code Playgroud)
有什么办法吗?
我一直在尝试使用 Git 日志进行哪些自定义,我想我已经确定了适合我的日志。但是,我不确定如何标记整个 git 消息。我可以在第一行完成,并且我假设整个 git 消息是一个长字符串。
另外,是否可以像 Git log default 那样输出整个 git commit 消息?也就是说,消息的每行 1 行。
默认的 Git 日志:
commit 3246e9dfcf80d8edada9a559684b528658b8ccf5
Author: Reid
Date: Thu Jun 9 16:30:35 2016 -0400
Refactored Loading Indicators
commit 219a67a34036b40d18091ea3a1df6417c5feb245
Author: Reid
Date: Fri Jun 3 14:50:59 2016 -0400
Filter out Promotions < 0
Submission of Promo Code working with error messages
Refactored Loading Indicators
Limit 1 promo code per order via Mini Cart
Cart stays open if they change quantity of item
Migrated …Run Code Online (Sandbox Code Playgroud)