GNU bug report logs - #36644
Git log search

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sat, 13 Jul 2019 22:32:02 UTC

Severity: wishlist

Tags: fixed

Fixed in version 27.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 36644 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Juri Linkov <juri <at> linkov.net>, 36644 <at> debbugs.gnu.org
Subject: Re: bug#36644: Git log search
Date: Mon, 15 Jul 2019 18:05:20 +0300
Hi Juri,

On 14.07.2019 1:27, Juri Linkov wrote:
> It would be very useful to have the command to grep git logs,
> for instance, to search commits by bug numbers in format "bug#36789"
> and many other such use cases:

I like the idea.

> +;; - log-search (pattern)
> +;;
> +;;   Search for PATTERN in the revision log.

Is pattern a regexp or a verbatim string? That should be documented. Git 
supports regexps, but maybe we should look at what other backends can 
support as well.

I wonder if the format of the output should be specified as well. E.g. 
by saying that it's the same as for print-log, long version.

> +(defun vc-git-log-search (buffer pattern)
> +  (vc-setup-buffer buffer)
> +  (vc-git-command
> +   buffer 'async nil
> +   "log"
> +   "--no-color" "-i" (format "--grep=%s" pattern)))

Should this use shell-quote-argument?




This bug report was last modified 6 years and 25 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.