branch: externals/ivy-hydra
commit a6d80c122a54414887462fdb51786edaccdd15af
Author: Hong Xu <[email protected]>
Commit: Oleh Krehel <[email protected]>

    counsel.el (counsel-git-grep-cmd-default): Do not include --full-name
    
    * counsel.el (counsel-git-grep-cmd-default): Remove `--full-name'.
    This breaks `counsel-cd'. The reason is that `--full-name' always
    return the file path relative to ".git", but after switching directory
    via `counsel-cd', it should be relative to the new directory.
    
    Fixes #2283
---
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index c6c7480..8e11fd4 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1316,7 +1316,7 @@ INITIAL-INPUT can be given as the initial minibuffer 
input."
     (define-key map (kbd "C-x C-d") 'counsel-cd)
     map))
 
-(defvar counsel-git-grep-cmd-default "git --no-pager grep --full-name -n 
--no-color -i -I -e \"%s\""
+(defvar counsel-git-grep-cmd-default "git --no-pager grep -n --no-color -i -I 
-e \"%s\""
   "Initial command for `counsel-git-grep'.")
 
 (defvar counsel-git-grep-cmd nil

Reply via email to