GNU bug report logs -
#36644
Git log search
Previous Next
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
View this message in rfc822 format
>>>>> On Wed, 24 Jul 2019 18:53:01 +0300, Dmitry Gutov <dgutov <at> yandex.ru> said:
>> Itʼs not a pattern. Itʼs a string that is passed as-is to the backend,
>> which is free to interpret it as it wishes. From my viewpoint, we can
>> just say
>>
>> "Search for STRING, which is passed unsullied to the backend's log
>> search command. Consult the documentation for your backend to
>> understand the matching method it uses to search for STRING."
Dmitry> IME this doesn't match the way we try to document commands in Emacs,
Dmitry> but I wouldn't want to spend much time arguing about this.
Dmitry> Eli, could you weigh in in this discussion? Would you say Robert's
Dmitry> proposal is acceptable?
Going back to Juri's original proposal:
+;;;###autoload
+(defun vc-log-search (pattern)
+ "Search a log of changes for PATTERN."
+ (interactive (list (read-regexp "Log search pattern: ")))
+ (let ((backend (vc-deduce-backend)))
+ (unless backend
+ (error "Buffer is not version controlled"))
+ (vc-incoming-outgoing-internal backend pattern
+ "*vc-search*" 'log-search)))
+
How about:
"Search a log of changes for PATTERN.
How PATTERN is interpreted will depend on how each individual
backend's log search command is implemented, as some can only match
fixed strings, some have regular expression support, etc."
Robert
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.