Function: majutsu-new-dwim
majutsu-new-dwim is an interactive and natively compiled function
defined in majutsu-new.el.
Signature
(majutsu-new-dwim ARG)
Documentation
Create a new changeset.
Without prefix ARG, use the changeset at point (or `@` when unavailable). With prefix ARG, open the new transient for interactive selection.
Key Bindings
majutsu-log-mode-map O
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-new.el
;;; majutsu-new
;;;###autoload
(defun majutsu-new-dwim (arg)
"Create a new changeset.
Without prefix ARG, use the changeset at point (or `@` when unavailable).
With prefix ARG, open the new transient for interactive selection."
(interactive "P")
(if arg
(call-interactively #'majutsu-new)
(let ((parent (majutsu-revision-at-point)))
(majutsu-new--run-command (if parent
(list "new" parent)
(list "new"))))))