The status buffer contains logs for the unpushed and unpulled commits,
but that obviously isn’t enough. The transient prefix command
magit-log
, on l
, features several suffix commands, which show a
specific log in a separate log buffer.
Like other transient prefix commands, magit-log
also features several
infix arguments that can be changed before invoking one of the suffix
commands. However, in the case of the log transient, these arguments
may be taken from those currently in use in the current repository’s
log buffer, depending on the value of magit-prefix-use-buffer-arguments
(see Transient Arguments and Buffer Variables).
For information about the various arguments, see the git-log(1) manpage.
The switch ++order=VALUE
is converted to one of --author-date-order
,
--date-order
, or --topo-order
before being passed to git log
.
The log transient also features several reflog commands. See Reflog.
magit-log
) ¶This transient prefix command binds the following suffix commands along with the appropriate infix arguments and displays them in a temporary buffer until a suffix is invoked.
magit-log-current
) ¶Show log for the current branch. When HEAD
is detached or with a
prefix argument, show log for one or more revs read from the
minibuffer.
magit-log-head
) ¶Show log for HEAD
.
magit-log-related
) ¶Show log for the current branch, its upstream and its push target.
When the upstream is a local branch, then also show its own
upstream. When HEAD
is detached, then show log for that, the
previously checked out branch and its upstream and push-target.
magit-log-other
) ¶Show log for one or more revs read from the minibuffer. The user can input any revision or revisions separated by a space, or even ranges, but only branches, tags, and a representation of the commit at point are available as completion candidates.
magit-log-branches
) ¶Show log for all local branches and HEAD
.
magit-log-all-branches
) ¶Show log for all local and remote branches and HEAD
.
magit-log-all
) ¶Show log for all references and HEAD
.
Two additional commands that show the log for the file or blob that is
being visited in the current buffer exists, see Commands for Buffers Visiting Files. The command magit-cherry
also shows a log, see
Cherries.