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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -