Function: vc-git--assert-allowed-rewrite
vc-git--assert-allowed-rewrite is a byte-compiled function defined in
vc-git.el.gz.
Signature
(vc-git--assert-allowed-rewrite REV)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git--assert-allowed-rewrite (rev)
(when (and (not (and vc-allow-rewriting-published-history
(not (eq vc-allow-rewriting-published-history 'ask))))
(vc-git-revision-published-p rev)
(not (and (eq vc-allow-rewriting-published-history 'ask)
(yes-or-no-p
(format "\
Commit %s appears published; allow rewriting history?"
rev)))))
(user-error "Will not rewrite likely-public history; \
see option `vc-allow-rewriting-published-history'")))