Function: magit-wip-commit-buffer-file
magit-wip-commit-buffer-file is an interactive and natively 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
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)))))