From: Stefan Bund Date: Tue, 13 Dec 2016 10:28:59 +0000 (+0100) Subject: further magit fixes X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=a8b98925dbb2002173ea88faf2d712909eba82bb;p=emacs-init.git further magit fixes --- diff --git a/setup/magit.el b/setup/magit.el index 8a3d27b..62846ee 100644 --- a/setup/magit.el +++ b/setup/magit.el @@ -124,10 +124,13 @@ (defun git-files-find-class-decl (symbol) (interactive (list (read-string "Symbol: " (current-word)))) - (let ((dir (magit-get-top-dir default-directory))) + (let ((dir (magit-toplevel default-directory))) (if (not dir) (error "No git repository")) (let ((default-directory dir)) - (grep (format "git ls-files -z | xargs -r0 grep -nwHF %s | grep -Ew '(class|struct)' | cat -" + (grep (format (concat "git ls-files -z" + " | xargs -r0 grep -d skip -nwHF %s" + " | grep -Ew '(class|struct|typedef|using)'" + " | grep -vEw 'friend'") symbol))))) (global-set-key "\C-cGF" 'git-files-find-symbol)