]> git.earman.xyz Git - emacsinit.git/commitdiff
Tweaks to vc-mode
authorrearman <rearman@r717.net>
Mon, 11 May 2026 20:24:51 +0000 (16:24 -0400)
committerrearman <rearman@r717.net>
Mon, 11 May 2026 20:24:51 +0000 (16:24 -0400)
Diff doesn't need the patch summary, and I've defaulted to histogram diff algo
system-wide anyway.

config.org

index f9da8e07d5012c293e9920364718ef65b557d3c0..353c4d1cc60fefc97df25d38c61991e925e59363 100644 (file)
@@ -1329,14 +1329,13 @@ With arg, ask for remote, otherwise fetch all."
 (add-hook 'vc-dir-mode-hook
          (lambda ()
            (keymap-set vc-dir-mode-map "b b" #'re/vc-show-branches)
-           (keymap-set vc-dir-mode-map "f" #'re/vc-fetch)))
+           (keymap-set vc-dir-mode-map "f" #'re/vc-fetch)
+           (keymap-set vc-dir-mode-map "k" #'vc-revert)))
 
 (setq vc-make-backup-files nil
       vc-handled-backends '(Git)
-      vc-git-diff-switches '("--patch-with-stat" "--histogram")
-      vc-git-log-switches '("--oneline" "--all" "--graph")
+      vc-git-log-switches '("--oneline" "--graph" "--decorate" "--all")
       vc-git-log-edit-summary-target-len 50
-      vc-git-log-edit-summary-max-len 70
       vc-find-revision-no-save t)
 #+END_SRC
 * Backups