If you want to list only the commits from the merged branch:
git log --pretty=oneline --abbrev-commit mergedBranch ^mainBranch --no-merges
In your case: feature/checkout_layout ^develop
.
(Based on "Using Git, show all commits that are in one branch, but not the other(s)").