emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra a6d80c1 003/395: counsel.el (counsel-git-grep


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra a6d80c1 003/395: counsel.el (counsel-git-grep-cmd-default): Do not include --full-name
Date: Thu, 25 Feb 2021 08:31:18 -0500 (EST)

branch: externals/ivy-hydra
commit a6d80c122a54414887462fdb51786edaccdd15af
Author: Hong Xu <hong@topbug.net>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]