aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-vc.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init/ycp-vc.el')
-rw-r--r--emacs/.emacs.d/init/ycp-vc.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init/ycp-vc.el b/emacs/.emacs.d/init/ycp-vc.el
index 66bb06f..232639e 100644
--- a/emacs/.emacs.d/init/ycp-vc.el
+++ b/emacs/.emacs.d/init/ycp-vc.el
@@ -75,7 +75,12 @@
(:install t)
(:delay 30)
(setq git-commit-summary-max-length 50)
- (setq git-commit-style-convention-checks '(non-empty-second-line)))
+ (setq git-commit-style-convention-checks '(non-empty-second-line))
+ ;; Revert all buffers in the project after a commit, to refresh
+ ;; diff-hl
+ (require 'my-project)
+ (add-hook 'git-commit-post-finish-hook #'my-project-revert-all-buffers)
+ )
(my-package magit
(:install t)