生成内核patch时,Fixes字段如何生成?
参考
- 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 it actually freed")
本文来自博客园,作者:dolinux,未经同意,禁止转载

浙公网安备 33010602011771号