Merging branch A into branch B does two things:
1. Create a new merge commit with two parents: the commit pointed to by A and the commit pointed to by B.
2. Set branch B to point at the new merge commit.
This is a non-linear history; when comparing some commits there isn't a "before" or "after."