* lisp/vc/vc-git.el (vc-git-log-search): Add docstring.
file under point). This command does not notify the VC backend, and
is mostly useful for unregistered files.
-*** New command 'vc-log-search' asks for a pattern string, searches
-it in the revision log, and displays matched log entries in the
+*** New command 'vc-log-search' asks for a pattern, searches it
+in the revision log, and displays matched log entries in the
log buffer. For example, 'M-x vc-log-search RET bug#36644 RET'
displays all entries whose log messages match the bug number.
With a prefix argument asks for a command, so for example,
;; - steal-lock (file &optional revision) NOT NEEDED
;; HISTORY FUNCTIONS
;; * print-log (files buffer &optional shortlog start-revision limit) OK
+;; * log-outgoing (buffer remote-location) OK
+;; * log-incoming (buffer remote-location) OK
+;; - log-search (buffer pattern) OK
;; - log-view-mode () OK
;; - show-log-entry (revision) OK
;; - comment-history (file) ??
remote-location))))
(defun vc-git-log-search (buffer pattern)
+ "Search the log of changes for PATTERN and output results into BUFFER.
+
+PATTERN is a basic regular expression by default in Git.
+
+Display all entries that match log messages in long format.
+With a prefix argument, ask for a command to run that will output
+log entries."
(let ((args `("log" "--no-color" "-i"
,(format "--grep=%s" (or pattern "")))))
(when current-prefix-arg
;;
;; - log-search (pattern)
;;
-;; Search for string PATTERN in the revision log.
+;; Search for PATTERN in the revision log.
;;
;; - log-view-mode ()
;;
;;;###autoload
(defun vc-log-search (pattern)
- "Search a log of changes for PATTERN string.
+ "Search the log of changes for PATTERN.
+
+PATTERN is usually interpreted as a regular expression. However, its
+exact semantics is up to the backend's log search command; some can
+only match fixed strings.
+
Display all entries that match log messages in long format.
With a prefix argument, ask for a command to run that will output
log entries."