Function: magit-wip-commit-buffer-file
magit-wip-commit-buffer-file is an interactive and byte-compiled
function defined in magit-wip.el.
Signature
(magit-wip-commit-buffer-file &optional MSG)
Documentation
Commit visited file to a worktree work-in-progress ref.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-wip.el
(defun magit-wip-commit-buffer-file (&optional msg)
"Commit visited file to a worktree work-in-progress ref."
(interactive (list "save %s snapshot"))
(when (magit-wip--commitable-p)
(magit-wip-commit-worktree
(magit-wip-get-ref)
(list buffer-file-name)
(format (or msg "autosave %s after save")
(magit-file-relative-name buffer-file-name)))))