When I look at a commit in magit, I see:
Author: My Name
AuthorDate: A Date
Commit: My Name again
CommitDate: A Date
Parent: 20f412c1 Commit message
Merged: master
Contained: devel foo
I know that 'parent' is the previous commit in the history, but what is the meaning of merged and contained? I've searched through git & magit docs but they are difficult keywords to search for as they pop up all over the place.
I would assume you are issuing the command
magit-show-commit. This function is part ofmagit-diff.el. In that file, we can see that for the keywordsContainedandMerged, they are used as parameters to something calledmagit--insert-related-refs/magit-buffer-revision.The diffing that is happening is described by the magit documentation as:
If we look at the
mixedoption, I interpret it in the following:For
Containedthis 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
Mergedthis means that it will show all local branches that are merged before this commit.