Function: majutsu-edit-changeset

majutsu-edit-changeset is an interactive and natively compiled function defined in majutsu-edit.el.

Signature

(majutsu-edit-changeset &optional ARG)

Documentation

Edit commit at point.

With prefix ARG, pass --ignore-immutable. When called from a blob buffer, also visit the workspace file.

Key Bindings

majutsu-mode-map e

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-edit.el
;;;###autoload
(defun majutsu-edit-changeset (&optional arg)
  "Edit commit at point.

With prefix ARG, pass --ignore-immutable.
When called from a blob buffer, also visit the workspace file."
  (interactive "P")
  (let ((in-blob (and (bound-and-true-p majutsu-blob-mode)
                      majutsu-buffer-blob-root
                      majutsu-buffer-blob-path)))
    (if-let* ((revset (majutsu-revision-at-point)))
        (when (majutsu-edit-revision revset arg)
          (when in-blob
            (let ((file (expand-file-name majutsu-buffer-blob-path
                                          majutsu-buffer-blob-root)))
              (find-file file))))
      (user-error "No revision at point"))))