生成内核patch时,Fixes字段如何生成?

参考

如下所示:

image

做法

  1. 配置git
[core]
        abbrev = 12
[pretty]
        fixes = Fixes: %h (\"%s\")
  1. 生成
$ git log -1 --pretty=fixes 54a4f0239f2e
Fixes: 54a4f0239f2e ("KVM: MMU: make kvm_mmu_zap_page() return the number of pages it actually freed")
posted @ 2023-10-30 15:19  dolinux  阅读(47)  评论(0)    收藏  举报