GNU bug report logs -
#59414
29.0.50; Have vc-git-expanded-log-entry pass --stat
Previous Next
Reported by: Sean Whitton <spwhitton <at> spwhitton.name>
Date: Sun, 20 Nov 2022 17:36:01 UTC
Severity: normal
Found in version 29.0.50
Done: Sean Whitton <spwhitton <at> spwhitton.name>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 59414 <at> debbugs.gnu.org (full text, mbox):
> I would like to add --stat to the list of options passed to git-log(1)
> by vc-git-expanded-log-entry. I think it makes VC root logs for Git
> repositories much more informative with little disadvantage. Any comments?
Not sure about adding --stat by default since often it produces too long
multi-line output. But definitely the options should be customizable
to avoid adding such cruft to config files:
(with-eval-after-load 'vc-git
;; OVERRIDDEN AND ADDED "--pretty=fuller"
(defun vc-git-expanded-log-entry (revision)
(with-temp-buffer
(apply 'vc-git-command t nil nil (list "log" revision "-1" "--pretty=fuller" "--"))
(goto-char (point-min))
(unless (eobp)
;; Indent the expanded log entry.
(while (re-search-forward "^ " nil t)
(replace-match "")
(forward-line))
(buffer-string)))))
This bug report was last modified 2 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.