chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a0e079
)
el/dot-emacs.el: Suppress `/dev/null' filename when running `git grep'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 12 May 2018 09:30:05 +0000
(10:30 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 12 May 2018 09:32:48 +0000
(10:32 +0100)
Yay. It works again.
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index 24d076d2e05477c4c1fb5ccd08e9eaf33fa20a6e..77d604ce7c4dd86925ab34c081efa3d5c16bd832 100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-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)))
(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.
;;;--------------------------------------------------------------------------
;;; Magit configuration.