Function: magit-status-mode
magit-status-mode is a byte-compiled function defined in
magit-status.el.
Signature
(magit-status-mode)
Documentation
Mode for looking at Git status.
This mode is documented in info node (magit)Status Buffer.
Type g (magit-refresh) to refresh the current buffer.
Type TAB (magit-section-toggle) to expand or hide the section at point.
Type RET (magit-visit-thing) to visit the change or commit at point.
Type ? (magit-dispatch) to invoke major commands.
Staging and applying changes is documented in info node
(magit)Staging and Unstaging and info node (magit)Applying.
Type <1> (magit-apply) to apply the change at point, <2> (magit-stage) to stage,
<3> (magit-unstage) to unstage, <4> (magit-discard) to discard, or <5> (magit-reverse) to reverse it.
Type c (magit-commit) to create a commit.
evil-next-visual-line
evil-previous-visual-line
forge-browse
forge-copy-url-at-point-as-kill
! magit-run
$ magit-process-buffer
% magit-worktree
' forge-dispatch
+ magit-diff-more-context
- magit-diff-less-context
- negative-argument
0 digit-argument
0 magit-diff-default-context
1 magit-section-show-level-1
2 magit-section-show-level-2
3 magit-section-show-level-3
4 magit-section-show-level-4
: magit-git-command
<backtab> magit-section-cycle-global
<left-fringe> <mouse-1> magit-mouse-toggle-section
<left-fringe> <mouse-2> magit-mouse-toggle-section
<mouse-1> magit-mouse-set-point
> magit-sparse-checkout
? magit-dispatch
A magit-cherry-pick
B magit-bisect
C magit-clone
C-<return> magit-visit-thing
C-<tab> magit-section-cycle
C-M-i magit-dired-jump
C-c C-c magit-dispatch
C-c C-e magit-edit-thing
C-c C-o magit-browse-thing
C-c C-r magit-next-reference
C-c C-w magit-copy-thing
C-c TAB magit-section-cycle
C-n magit-next-line
C-p magit-previous-line
C-w magit-copy-section-value
C-x C-j magit-dired-jump
D magit-diff-refresh
DEL magit-diff-show-or-scroll-down
E magit-ediff
F magit-pull
G magit-refresh-all
H magit-describe-section
I magit-init
J magit-display-repository-buffer
K magit-file-untrack
L magit-log-refresh
M magit-remote
M-1 magit-section-show-level-1-all
M-2 magit-section-show-level-2-all
M-3 magit-section-show-level-3-all
M-4 magit-section-show-level-4-all
M-<tab> magit-section-cycle
M-<tab> magit-section-cycle-diffs
M-m magit-back-to-indentation
M-n magit-section-forward-sibling
M-p magit-section-backward-sibling
M-w magit-copy-buffer-revision
N forge-dispatch
O magit-subtree
P magit-push
Q magit-git-command
R magit-file-rename
RET magit-visit-thing
S magit-stage-modified
S-SPC magit-diff-show-or-scroll-down
SPC magit-diff-show-or-scroll-up
SPC..~ undefined
T magit-notes
TAB magit-section-toggle
U magit-unstage-all
V magit-revert
W magit-patch
X magit-reset
Y magit-cherry
Z magit-worktree
^ magit-section-up
a magit-cherry-apply
b magit-branch
c magit-commit
d magit-diff
e magit-ediff-dwim
f magit-fetch
g magit-refresh
h magit-dispatch
i magit-gitignore
j magit-status-jump
j magit-status-quick
k magit-delete-thing
l magit-log
m magit-merge
n magit-section-forward
o magit-submodule
p magit-section-backward
q magit-mode-bury-buffer
q..\x3FFFFF digit-argument
r magit-rebase
s magit-stage-files
t magit-tag
u magit-unstage-files
v magit-revert-no-commit
w magit-am
x magit-reset-quickly
y magit-show-refs
z magit-stash
In addition to any hooks its parent mode magit-mode might have run,
this mode runs the hook magit-status-mode-hook, as the final or
penultimate step during initialization.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-status.el
(define-derived-mode magit-status-mode magit-mode "Magit"
"Mode for looking at Git status.
This mode is documented in info node `(magit)Status Buffer'.
\\<magit-mode-map>\
Type \\[magit-refresh] to refresh the current buffer.
Type \\[magit-section-toggle] to expand or hide the section at point.
Type \\[magit-visit-thing] to visit the change or commit at point.
Type \\[magit-dispatch] to invoke major commands.
Staging and applying changes is documented in info node
`(magit)Staging and Unstaging' and info node `(magit)Applying'.
\\<magit-hunk-section-map>Type \
\\[magit-apply] to apply the change at point, \
\\[magit-stage] to stage,
\\[magit-unstage] to unstage, \
\\[magit-discard] to discard, or \
\\[magit-reverse] to reverse it.
\\<magit-status-mode-map>\
Type \\[magit-commit] to create a commit.
\\{magit-status-mode-map}"
:interactive nil
:group 'magit-status
(magit-hack-dir-local-variables)
(setq magit--imenu-group-types '(not branch commit)))