git - 我怎样才能找到冗长的提交消息?

标签 git

我的想法是,用于修饰提交的击键次数越多,有用的想法就越有可能嵌入到该提交中。我怎样才能找到这些?单行提交,仅仅是一个主题,不值得寻找:

ran updated format rules

鉴于这样的提交可能值得遇到:

changed fetch of base64 images

Changed the way we return base64 images when fetching for content because when we clear out the deleted image form s3 and update the content with a empty key it causes an exception trying fetch base64 images with an invalid key.

This is because the actual database delete happens after we have returned response to MSC. Ideally we could move the delete to project theseus and then no longer do the db call on the MSC side. For now this should work.

我如何从 git 日志中检索此类提交的列表?

最佳答案

git rev-list --all | git cat-file --batch-check | sort -nk3

或者你可以做类似的事情而不是那种

git rev-list --all | git cat-file --batch-check \
| awk '$3 > 300 {print $1}' | git log --no-walk --stdin

关于git - 我怎样才能找到冗长的提交消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70791612/

相关文章:

Git 从另一个远程分支更新我的远程分支

git - 如何在 Git 中 merge 子目录?

java - 如何从 git 克隆存储库并在 java 中自动运行 maven build

windows - 如何将 Git for Windows 软件安装到特定目录?

windows - Windows 版 Git 更改提交消息?

windows - 让 git bash 在当前存储库中启动

javascript - 了解 Node.js 服务器目录结构和安全性

git - 如何在不实际删除文件的情况下从git存储库中删除文件

windows - 我如何处理 Windows 上包含符号链接(symbolic link)的 git repo

Git 工作流 : commit ! = 操作系统保存