Function: vc-git-log-search
vc-git-log-search is a byte-compiled function defined in vc-git.el.gz.
Signature
(vc-git-log-search BUFFER PATTERN)
Documentation
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.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(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"
,@(ensure-list vc-git-log-switches)
,(format "--grep=%s" (or pattern "")))))
(when current-prefix-arg
(setq args (cdr (split-string
(read-shell-command
"Search log with command: "
(format "%s %s" vc-git-program
(mapconcat #'identity args " "))
'vc-git-history)
" " t))))
(vc-setup-buffer buffer)
(apply #'vc-git-command buffer 'async nil args)))