cfanbo / cfanbo.github.io

1 stars 0 forks source link

写好 Git Commit 信息的 7 个建议 | 学习笔记 #267

Open cfanbo opened 3 months ago

cfanbo commented 3 months ago

https://blog.haohtml.com/archives/16022/

这里推荐: http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html 介绍: 为什么好的提交信息如此重要 当你随意浏览任一 git 仓库的日志,你很可能会发现其中的提交信息或多或少有点乱。举个例子,瞧一瞧我早先提交到 Spring 上的这些宝贝: $ git log –oneline -5 –author cbeams –before “Fri Mar 26 2009” e5f4b49 Re-adding ConfigurationPostProcessorTests after its brief removal in r814. @Ignore-ing the testCglibClassesAreLoadedJustInTimeForEnhancement() method as it turns out this was one of the culprits in the recent build breakage. The classloader hacking causes subtle downstream effects, breaking unrelated tests. The test method is still useful, but should only be run on a manual basis to ensure CGLIB is not prematurely classloaded, and should not be run as part of the automated build.