Variable: dired-vc-rename-file

dired-vc-rename-file is a customizable variable defined in dired-aux.el.gz.

Value

nil

Documentation

Whether Dired should register file renaming in underlying vc system.

If nil, use default rename-file. If non-nil and the renamed files are under version control, rename them using vc-rename-file.

This variable was added, or its default value changed, in Emacs 27.1.

View in manual

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defcustom dired-vc-rename-file nil
  "Whether Dired should register file renaming in underlying vc system.
If nil, use default `rename-file'.
If non-nil and the renamed files are under version control,
rename them using `vc-rename-file'."
  :type '(choice (const :tag "Use rename-file" nil)
                 (const :tag "Use vc-rename-file" t))
  :group 'dired
  :version "27.1")