Next: Bisecting, Previous: Ediffing, Up: Inspecting [Contents][Index]
magit-show-refs-popup
)List and compare references in a dedicated buffer. By default all
refs are compared with HEAD
, but with a prefix argument this command
instead acts as a prefix command and shows the following suffix
commands along with the appropriate infix arguments in a popup
buffer.
magit-show-refs-head
)List and compare references in a dedicated buffer. Refs are
compared with HEAD
.
magit-show-refs-current
)List and compare references in a dedicated buffer. Refs are
compared with the current branch or HEAD
if it is detached.
magit-show-refs
)List and compare references in a dedicated buffer. Refs are compared with a branch read from the user.
Whether to show commit counts in Magit-Refs mode buffers.
all
Show counts for branches and tags.
branch
Show counts for branches only.
nil
Never show counts.
The default is nil
because anything else can be very expensive.
This option specifies whether the margin is initially shown in Magit-Refs mode buffers and how it is formatted.
The value has the form (INIT STYLE WIDTH AUTHOR AUTHOR-WIDTH)
.
age
(to show the age of the commit), age-abbreviated
(to
abbreviate the time unit to a character), or a string (suitable
for format-time-string
) to show the actual date.
This option specifies whether to show information about tags in the margin. This is disabled by default because it is slow if there are many tags.
The following variables control how individual refs are displayed. If you change one of these variables (especially the "%c" part), then you should also change the others to keep things aligned. The following %-sequences are supported:
%a
Number of commits this ref has over the one we compare to.
%b
Number of commits the ref we compare to has over this one.
%c
Number of commits this ref has over the one we compare to. For
the ref which all other refs are compared this is instead "@", if
it is the current branch, or "#" otherwise.
%C
For the ref which all other refs are compared this is "@", if it
is the current branch, or "#" otherwise. For all other refs " ".
%h
Hash of this ref’s tip.
%m
Commit summary of the tip of this ref.
%n
Name of this ref.
%u
Upstream of this local branch.
%U
Upstream of this local branch and additional local vs. upstream
information.
Format used for local branches in refs buffers.
Format used for remote branches in refs buffers.
Format used for tags in refs buffers.
Indentation of cherries in refs buffers. This should be N-1 where N is taken from "%Nc" in the above format strings.
magit-visit-ref
)This command visits the reference or revision at point in another buffer. If there is no revision at point or with a prefix argument then it prompts for a revision.
This command behaves just like magit-show-commit
as described above,
except if point is on a reference in a magit-refs-mode
buffer, in
which case the behavior may be different, but only if you have
customized the option magit-visit-ref-behavior
.
This option controls how magit-visit-ref
behaves in magit-refs-mode
buffers.
By default magit-visit-ref
behaves like magit-show-commit
, in all
buffers, including magit-refs-mode
buffers. When the type of the
section at point is commit
then "RET" is bound to magit-show-commit
,
and when the type is either branch
or tag
then it is bound to
magit-visit-ref
.
"RET" is one of Magit’s most essential keys and at least by default it should behave consistently across all of Magit, especially because users quickly learn that it does something very harmless; it shows more information about the thing at point in another buffer.
However "RET" used to behave differently in magit-refs-mode
buffers,
doing surprising things, some of which cannot really be described as
"visit this thing". If you’ve grown accustomed this behavior, you
can restore it by adding one or more of the below symbols to the
value of this option. But keep in mind that by doing so you don’t
only introduce inconsistencies, you also lose some functionality and
might have to resort to M-x magit-show-commit
to get it back.
magit-visit-ref
looks for these symbols in the order in which they
are described here. If the presence of a symbol applies to the
current situation, then the symbols that follow do not affect the
outcome.
focus-on-ref
With a prefix argument update the buffer to show commit counts
and lists of cherry commits relative to the reference at point
instead of relative to the current buffer or HEAD
.
Instead of adding this symbol, consider pressing "C-u y o RET".
create-branch
If point is on a remote branch, then create a new local branch with the same name, use the remote branch as its upstream, and then check out the local branch.
Instead of adding this symbol, consider pressing "b c RET RET", like you would do in other buffers.
checkout-any
Check out the reference at point. If that reference is a tag
or a remote branch, then this results in a detached HEAD
.
Instead of adding this symbol, consider pressing "b b RET", like you would do in other buffers.
checkout-branch
Check out the local branch at point.
Instead of adding this symbol, consider pressing "b b RET", like you would do in other buffers.
• References Sections: |
Next: Bisecting, Previous: Ediffing, Up: Inspecting [Contents][Index]