I would assume you are issuing the command magit-show-commit
. This function is part of magit-diff.el
. In that file, we can see that for the keywords Contained
and Merged
, they are used as parameters to something called magit--insert-related-refs/magit-buffer-revision
.
The diffing that is happening is described by the magit documentation as:
User Option: magit-revision-insert-related-refs
Whether to show related branches in revision buffers.
nil
Don’t show any related branches.
t
Show related local branches.
all
Show related local and remote branches.
mixed
Show all containing branches and local merged branches.
If we look at the mixed
option, I interpret it in the following:
For Contained
this means that as you pick the commit you want to look at, all branches that follow that commit (are contained after it), shall be placed in that section.
For Merged
this means that it will show all local branches that are merged before this commit.