Download Magit User Manual
Transcript
Chapter 5: Inspecting 25 5.2 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 case of the log popup these arguments correspond to those currently in use in the current repository’s log buffer. When the log popup is invoked while no log buffer exists for the current repository yet, then the default value of magit-log-arguments is used instead. For information about the various arguments, see the git-log(1) manpage . The log popup also features several reflog commands. See Section 5.2.4 [Reflog], page 27. (magit-log-popup) This prefix command shows the following suffix commands along with the appropriate infix arguments in a popup buffer. l ll (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. lo (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. lh (magit-log-head) Show log for HEAD. lL (magit-log-branches) Show log for all local branches and HEAD. lb (magit-log-all-branches) Show log for all local and remote branches and HEAD. la (magit-log-all) Show log for all references and HEAD. The following related commands are not available from the popup. Y (magit-cherry) Show commits in a branch that are not merged in the upstream branch. M-x magit-log-buffer-file (magit-log-buffer-file) Show log for the file visited in the current buffer. 5.2.1 Refreshing logs The prefix command magit-log-refresh-popup, on L, can be used to change the log arguments used in the current buffer, without changing which log is shown. This works in dedicated log buffers, but also in the status buffer.