I have a branch where I then created a pull request and did a Squash and merge which generated a new commit SHA and merged to master.
Issue is I want to use that SHA from master qe55a1a to retrieve the last SHA on the branch ca10b2d, right before the squash and merge.
Is there a git command that can be used to get ca10b2d from qe55a1a programmatically - Given qe55a1a, ca10b2d must be returned.
Branch A
ca10b2d - last commit
qe55a1a - squash and merge commit
Master
qe55a1a - squash and merge commit
I know if I had of done merge commit, i'd have a second parent commit that could be used. That's what i'm after but for squash and merge.