delete-this-file: don't propagate deletion to vcs
Doom shouldn't assume the user always wants to stage the current deletion after every delete.
This commit is contained in:
parent
4c8afef3c9
commit
a25eff0189
1 changed files with 1 additions and 5 deletions
|
@ -30,11 +30,7 @@
|
||||||
(projectile-file-cached-p old-path (projectile-project-root)))
|
(projectile-file-cached-p old-path (projectile-project-root)))
|
||||||
(projectile-purge-file-from-cache old-path))
|
(projectile-purge-file-from-cache old-path))
|
||||||
(when (bound-and-true-p save-place-mode)
|
(when (bound-and-true-p save-place-mode)
|
||||||
(save-place-forget-unreadable-files))
|
(save-place-forget-unreadable-files)))
|
||||||
(when (featurep 'vc)
|
|
||||||
(when-let* ((backend (vc-backend old-path))
|
|
||||||
(default-directory (file-name-directory old-path)))
|
|
||||||
(vc-call-backend backend 'delete-file old-path))))
|
|
||||||
|
|
||||||
(defun doom--update-file (path)
|
(defun doom--update-file (path)
|
||||||
(when (featurep 'vc)
|
(when (featurep 'vc)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue