Full Emacs grep is much fancier. Maybe it'll get improved later. Maybe
someone else will do a proper one. Alas, the thing welded into vc-git
is terrible.
(interactive "sHost: ")
(ansi-term (list "ssh" host) (format "ssh@%s" host)))
(interactive "sHost: ")
(ansi-term (list "ssh" host) (format "ssh@%s" host)))
+(defvar git-grep-command
+ "env PAGER=cat git grep --no-color -nH -e "
+ "*The default command for \\[git-grep].")
+
+(defvar git-grep-history nil)
+
+(defun git-grep (command-args)
+ "Run `git grep' with user-specified args and collect output in a buffer."
+ (interactive
+ (list (read-shell-command "Run git grep (like this): "
+ git-grep-command 'git-grep-history)))
+ (grep command-args))
+
;;;--------------------------------------------------------------------------
;;; Inferior Emacs Lisp.
;;;--------------------------------------------------------------------------
;;; Inferior Emacs Lisp.