Getting commits from one branch and verifying whether they were cherry-picked into the master branch