git - How to check to which branches of the linux kernel repo a specific commit is applied -
let's have git commit in linux git repo, e.g. http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=8c7188b23474cca017b3ef354c4a58456f68303a
how can i, starting commit, understand in branches of repo commit contained? security provider tells me above commit applies 2.6.x, 3.10.x, 3.12.x, 3.14.x, , 3.4.x branches.
how able determine this?
first, fetch make sure have latest remote:
git fetch
use --contains
option of branch
command:
git branch --all --contains 8c7188b23474cca017b3ef354c4a58456f68303a
--contains [] list branches contain specified commit (head if not specified)
Comments
Post a Comment