The contents of status buffers is controlled using the hook
magit-status-sections-hook. See Section Hooks to learn about such
hooks and how to customize them.
Hook run to insert sections into a status buffer.
The first function on that hook by default is
magit-insert-status-headers; it is described in the next section.
By default the following functions are also members of that hook:
Insert section for the on-going merge. Display the heads that are being merged. If no merge is in progress, do nothing.
Insert section for the on-going rebase sequence. If no such sequence is in progress, do nothing.
Insert section for the on-going patch applying sequence. If no such sequence is in progress, do nothing.
Insert section for the on-going cherry-pick or revert sequence. If no such sequence is in progress, do nothing.
While bisecting, insert section with output from
While bisecting, insert section visualizing the bisect state.
While bisecting, insert section logging bisect progress.
Maybe insert a list or tree of untracked files.
Do so depending on the value of
that even if the value is
all, Magit still initially only shows
directories. But the directory sections can then be expanded using
Insert section showing unstaged changes.
Insert section showing staged changes.
stashes section showing reflog for "refs/stash".
If optional REF is non-nil show reflog for that instead.
If optional HEADING is non-nil use that as section heading
instead of "Stashes:".
Insert section showing commits that haven’t been pulled from the upstream branch yet.
Insert section showing commits that haven’t been pulled from the push-remote branch yet.
Insert section showing commits that haven’t been pushed to the upstream yet.
Insert section showing commits that haven’t been pushed to the push-remote yet.
The following functions can also be added to the above hook:
Insert a tree of tracked files.
Insert a tree of ignored files.
If the first element of
magit-diff-section-arguments is a directory,
then limit the list to files below that. The value of that variable
can be set using
D = f <DIRECTORY> RET g.
Insert section showing unpulled or recent commits.
If an upstream is configured for the current branch and it is
ahead of the current branch, then show the missing commits.
Otherwise, show the last
Insert section showing the last
How many recent commits
magit-insert-unpulled-or-recent-commits (provided there are no
unpulled commits) show.
Insert section showing unpulled commits.
magit-insert-unpulled-commits but prefix each commit
that has not been applied yet (i.e. a commit with a patch-id
not shared with any local commit) with "+", and all others
Insert section showing unpushed commits.
magit-insert-unpushed-commits but prefix each commit
which has not been applied to upstream yet (i.e. a commit with
a patch-id not shared with any upstream commit) with "+" and
all others with "-".
See References Buffer for some more section inserters, which could be used here.