Variable: vc-git-file-name-changes-switches

vc-git-file-name-changes-switches is a customizable variable defined in vc-git.el.gz.

Value

("-M" "-C")

Documentation

String or list of string to pass to Git when finding previous names.

This option should usually at least contain '-M'. You can adjust the flags to change the similarity thresholds (default 50%). Or add --find-copies-harder (slower in large projects, since it uses a full scan).

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

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defcustom vc-git-file-name-changes-switches '("-M" "-C")
  "String or list of string to pass to Git when finding previous names.

This option should usually at least contain '-M'.  You can adjust
the flags to change the similarity thresholds (default 50%).  Or
add `--find-copies-harder' (slower in large projects, since it
uses a full scan)."
  :type '(choice (const :tag "None" nil)
                 (string :tag "Argument String")
                 (repeat :tag "Argument List" :value ("") string))
  :version "30.1")