参考
- https://www.kernel.org/doc/html/latest/process/submitting-patches.html
- https://git-scm.com/docs/pretty-formats
如下所示:
做法
- 配置git
[core] abbrev = 12 [pretty] fixes = Fixes: %h (\"%s\")
- 生成
$ git log -1 --pretty=fixes 54a4f0239f2e Fixes: 54a4f0239f2e ("KVM: MMU: make kvm_mmu_zap_page() return the number of pages