Git command to find backported commits in Linux Kernel Repo

℡╲_俬逩灬. 提交于 2020-01-17 03:40:53

问题


Consider the Linux Kernel Git repository. The new versions of the kernel contain the backport of upstream fixes. E.g. v4.3.4 and v4.1.16 both contain the commit 23567fd052a9abb6d67fe8e7a9ccdd9800a540f2.

However, backporting that commit to those branches was itself a new commit, c23d6de841098d408ceb573cbc9f4dcf7c92a786 for 4.3.4 and b71567e6c9a2b15b7be9cb8ca695e9c990c0513b for 4.1.16. As far as i can see, the ID of the original commit (23567fd0..) is now only part of the comment in those new commits.

Is there a (series of) git commands, that allow me to get a list of all the branches that contain a commit message which contains a specific commit ID?

来源:https://stackoverflow.com/questions/35045071/git-command-to-find-backported-commits-in-linux-kernel-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!