Next: , Previous: , Up: Inspecting   [Contents][Index]


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.

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-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.


Next: , Previous: , Up: Inspecting   [Contents][Index]