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


5.3 Logging

The status buffer contains logs for the unpushed and unpulled commits, but that obviously isn’t enough. The prefix command magit-log-popup, on l, features several suffix commands, which show a specific log in a separate log buffer.

Like other popups, the log popup also features several arguments that can be changed before invoking one of the suffix commands. However, in the case of the log popup, these arguments may be taken from those currently in use in the current repository’s log buffer, depending on the value of magit-use-sticky-arguments (see Popup Buffers and Prefix Commands).

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 popup also features several reflog commands. See Reflog.

l     (magit-log-popup)

This prefix command shows the following suffix commands along with the appropriate infix arguments in a popup buffer.

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

l o     (magit-log)

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.

l h     (magit-log-head)

Show log for HEAD.

l L     (magit-log-branches)

Show log for all local branches and HEAD.

l b     (magit-log-all-branches)

Show log for all local and remote branches and HEAD.

l a     (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 Minor Mode for Buffers Visiting Files. The command magit-cherry also shows a log, see Cherries.


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