I have a commit bca7704e
that I'm pretty certain is not in Release-1.0
. If I do git log Release-1.0
and search, the commit doesn't show up. However, if I do git log bca7704e
it seems to do the log for that commit without respect to the current branch (which I would expect anyway)
I can do git branch --contains bca7704e | grep Release-1.0
as an ad-hoc check to see that the commit is not in the current branch.
However, is there any way to look for commits with respect to a given branch (or the current branch?) If the commit doesn't exist I would expect it to error out.