Skip to content

Commit d8ff006

Browse files
author
Thierry Volpiatto
committed
Now the git-grep command is defined in helm-grep.el.
* helm-ls-git.el (helm-ls-git-grep-command): Alias it for compatibility.
1 parent 8313e56 commit d8ff006

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

helm-ls-git.el

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(require 'cl-lib)
2323
(require 'vc)
2424
(require 'vc-git)
25-
(require 'helm-files)
25+
(require 'helm-files) ; helm-grep is required in helm-files.
2626
(require 'helm-types)
2727

2828
(defvaralias 'helm-c-source-ls-git 'helm-source-ls-git)
@@ -63,20 +63,10 @@ Valid values are symbol 'abs (default) or 'relative."
6363
helm-source-ls-git-buffers nil))
6464
:type 'boolean)
6565

66-
(defcustom helm-ls-git-grep-command
67-
"git grep -n%cH --color=always --exclude-standard --no-index --full-name -e %p %f"
68-
"The git grep default command line.
69-
The option \"--color=always\" can be used safely.
70-
The color of matched items can be customized in your .gitconfig
71-
See `helm-grep-default-command' for more infos.
72-
73-
The \"--exclude-standard\" and \"--no-index\" switches allow
74-
skipping unwanted files specified in ~/.gitignore_global
75-
and searching files not already staged.
76-
You have also to enable this in global \".gitconfig\" with
77-
\"git config --global core.excludesfile ~/.gitignore_global\"."
78-
:group 'helm-ls-git
79-
:type 'string)
66+
;; Now the git-grep command is defined in helm-grep.el,
67+
;; alias it for backward compatibility.
68+
(defvar helm-ls-git-grep-command)
69+
(defvaralias 'helm-ls-git-grep-command 'helm-grep-git-grep-command)
8070

8171
(defcustom helm-ls-git-default-sources '(helm-source-ls-git-status
8272
helm-source-ls-git-buffers

0 commit comments

Comments
 (0)