Skip to main content

5.6.1 References Sections

The contents of references buffers is controlled using the hook magit-refs-sections-hook. See Section Hooks to learn about such hooks and how to customize them. All of the below functions are members of the default value. Note that it makes much less sense to customize this hook than it does for the respective hook used for the status buffer.

user option magit-refs-sections-hook

Hook run to insert sections into a references buffer.

function magit-insert-local-branches

Insert sections showing all local branches.

function magit-insert-remote-branches

Insert sections showing all remote-tracking branches.

function magit-insert-tags

Insert sections showing all tags.