Merge pull request #4748 from nbfalcon/bugfix-security/git-commit-locals-predicates
`git-commit`: fix variable predicates
This commit is contained in:
commit
1c9184504a
1 changed files with 5 additions and 2 deletions
|
@ -9,8 +9,11 @@
|
||||||
(setenv "GIT_ASKPASS" "git-gui--askpass"))
|
(setenv "GIT_ASKPASS" "git-gui--askpass"))
|
||||||
|
|
||||||
;; Don't complain when these variables are set in file/local vars
|
;; Don't complain when these variables are set in file/local vars
|
||||||
(put 'git-commit-major-mode 'safe-local-variable 'symbolp)
|
(put 'git-commit-major-mode 'safe-local-variable
|
||||||
(put 'git-commit-summary-max-length 'safe-local-variable 'symbolp)
|
(lambda (x)
|
||||||
|
(memq x '(git-commit-elisp-text-mode
|
||||||
|
text-mode fundamental-mode org-mode markdown-mode))))
|
||||||
|
(put 'git-commit-summary-max-length 'safe-local-variable 'numberp)
|
||||||
|
|
||||||
;; In case the user is using `bug-reference-mode'
|
;; In case the user is using `bug-reference-mode'
|
||||||
(map! :when (fboundp 'bug-reference-mode)
|
(map! :when (fboundp 'bug-reference-mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue