chiark / gitweb /
el/dot-emacs.el: Suppress `/dev/null' filename when running `git grep'.
[profile] / el / dot-emacs.el
index 24d076d2e05477c4c1fb5ccd08e9eaf33fa20a6e..77d604ce7c4dd86925ab34c081efa3d5c16bd832 100644 (file)
@@ -4016,7 +4016,8 @@ (defun git-grep (command-args)
   (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.