如何检查 linux 内核仓库的哪些分支应用了特定的提交
How to check to which branches of the linux kernel repo a specific commit is applied
假设我在 linux git 回购中有一个 git 提交,例如http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=8c7188b23474cca017b3ef354c4a58456f68303a
我如何从这个提交开始,了解这个提交实际包含在 repo 的哪些分支中?安全提供商告诉我上述提交适用于 2.6.x、3.10.x、3.12.x、3.14.x 和 3.4.x 分支机构。
他们如何确定这一点?
首先,获取以确保您拥有来自遥控器的最新版本:
git fetch
使用branch
命令的--contains
选项:
git branch --all --contains 8c7188b23474cca017b3ef354c4a58456f68303a
--contains [] Only list branches which contain the specified commit (HEAD if not specified)
假设我在 linux git 回购中有一个 git 提交,例如http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=8c7188b23474cca017b3ef354c4a58456f68303a
我如何从这个提交开始,了解这个提交实际包含在 repo 的哪些分支中?安全提供商告诉我上述提交适用于 2.6.x、3.10.x、3.12.x、3.14.x 和 3.4.x 分支机构。
他们如何确定这一点?
首先,获取以确保您拥有来自遥控器的最新版本:
git fetch
使用branch
命令的--contains
选项:
git branch --all --contains 8c7188b23474cca017b3ef354c4a58456f68303a
--contains [] Only list branches which contain the specified commit (HEAD if not specified)