5.2 Repository List
command
magit-list-repositoriesβ
This command displays a list of repositories in a separate buffer.
The options magit-repository-directories
and magit-repository-directories-depth
control which repositories are displayed.
user option
magit-repolist-columnsβ
This option controls what columns are displayed by the command magit-list-repositories
and how they are displayed.
Each element has the form (HEADER WIDTH FORMAT PROPS)
.
HEADER is the string displayed in the header. WIDTH is the width of the column. FORMAT is a function that is called with one argument, the repository identification (usually its basename), and with default-directory
bound to the toplevel of its working tree. It has to return a string to be inserted or nil. PROPS is an alist that supports the keys :right-align
and :pad-right
.
You may wish to display a range of numeric columns using just one character per column and without any padding between columns, in which case you should use an appropriate HEADER, set WIDTH to 1, and set :pad-right
to 0. +
is substituted for numbers higher than 9.
The following functions can be added to the above option:
function
magit-repolist-column-identβ
This function inserts the identification of the repository. Usually this is just its basename.
function
magit-repolist-column-pathβ
This function inserts the absolute path of the repository.
function
magit-repolist-column-versionβ
This function inserts a description of the repositoryβs HEAD
revision.
function
magit-repolist-column-branchβ
This function inserts the name of the current branch.
function
magit-repolist-column-upstreamβ
This function inserts the name of the upstream branch of the current branch.
function
magit-repolist-column-branchesβ
This function inserts the number of branches.
function
magit-repolist-column-stashesβ
This function inserts the number of stashes.
function
magit-repolist-column-flagβ
This function inserts a flag as specified by magit-repolist-column-flag-alist
.
By default this indicates whether there are uncommitted changes.
N
if there is at least one untracked file.U
if there is at least one unstaged file.S
if there is at least one staged file.
Only the first one of these that applies is shown.
function
magit-repolist-column-unpulled-from-upstreamβ
This function inserts the number of upstream commits not in the current branch.
function
magit-repolist-column-unpulled-from-pushremoteβ
This function inserts the number of commits in the push branch but not the current branch.
function
magit-repolist-column-unpushed-to-upstreamβ
This function inserts the number of commits in the current branch but not its upstream.
function
magit-repolist-column-unpushed-to-pushremoteβ
This function inserts the number of commits in the current branch but not its push branch.