From: Juri Linkov <juri@linkov.net>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: 59414@debbugs.gnu.org
Subject: bug#59414: 29.0.50; Have vc-git-expanded-log-entry pass --stat
Date: Sun, 20 Nov 2022 19:52:55 +0200 [thread overview]
Message-ID: <86ilj9wm14.fsf@mail.linkov.net> (raw)
In-Reply-To: <874jutjzqj.fsf@melete.silentflame.com> (Sean Whitton's message of "Sun, 20 Nov 2022 10:35:16 -0700")
> 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)))))
next prev parent reply other threads:[~2022-11-20 17:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-20 17:35 bug#59414: 29.0.50; Have vc-git-expanded-log-entry pass --stat Sean Whitton
2022-11-20 17:52 ` Juri Linkov [this message]
2022-11-20 20:14 ` Dmitry Gutov
2022-11-20 21:58 ` Sean Whitton
2022-11-20 22:11 ` Dmitry Gutov
2022-11-21 20:29 ` Sean Whitton
2022-12-03 7:04 ` Sean Whitton
2022-12-04 19:19 ` Juri Linkov
2022-12-04 22:57 ` Sean Whitton
2022-12-05 0:54 ` Dmitry Gutov
2022-12-05 5:09 ` Sean Whitton
2022-12-05 12:29 ` Eli Zaretskii
2022-12-05 12:40 ` Dmitry Gutov
2022-12-05 12:57 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86ilj9wm14.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=59414@debbugs.gnu.org \
--cc=spwhitton@spwhitton.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.