el/dot-emacs.el: Suppress `/dev/null' filename when running `git grep'.
[profile] / el / dot-emacs.el
index 24d076d..77d604c 100644 (file)
@@ -4016,7 +4016,8 @@ This allows you to pass a list of arguments through `ansi-term'."
   (interactive
    (list (read-shell-command "Run git grep (like this): "
                             git-grep-command 'git-grep-history)))
-  (grep command-args))
+  (let ((grep-use-null-device nil))
+    (grep command-args)))
 
 ;;;--------------------------------------------------------------------------
 ;;; Magit configuration.