Function: majutsu-squash--check-patch-source

majutsu-squash--check-patch-source is a natively compiled function defined in majutsu-squash.el.

Signature

(majutsu-squash--check-patch-source ARGS PATCH-SOURCE)

Documentation

Signal if ARGS select a source incompatible with PATCH-SOURCE.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-squash.el
(defun majutsu-squash--check-patch-source (args patch-source)
  "Signal if ARGS select a source incompatible with PATCH-SOURCE."
  (let ((sources (majutsu-squash--source-values args)))
    (unless patch-source
      (user-error "Patch selection for squash requires a revision diff"))
    (unless (or (null sources)
                (and (= (length sources) 1)
                     (equal (car sources) patch-source)))
      (user-error "Patch selection for squash requires the diff source"))))