From 558b03a958839a53bac761b20c800b6b6cf43468 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sun, 27 Feb 2022 15:28:04 +0200 Subject: [PATCH] Add explicit '--no-heading' for ripgrep * lisp/progmodes/xref.el (xref-search-program-alist): Add explicit '--no-heading' for ripgrep (bug#54177). --- lisp/progmodes/xref.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 0ee7dd5cadf..2fd5e192376 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -1626,7 +1626,7 @@ IGNORES is a list of glob patterns for files to ignore." (ripgrep . ;; '!*/' is there to filter out dirs (e.g. submodules). - "xargs -0 rg --null -nH --no-messages -g '!*/' -e " + "xargs -0 rg --null -nH --no-heading --no-messages -g '!*/' -e " )) "Associative list mapping program identifiers to command templates. -- 2.39.2