Support jump to file under cursor in :Git -p grep

This also adds support for :Git -p status, since we basically already
have an implementation for it.
This commit is contained in:
Tim Pope committed 2021-08-17 17:18:20 -04:00
1 parent 2d3e83abe3
commit 80e7c63fb1
2 files changed
+37 -18

No files matched your search

+1 -1
View File
@@ -546,7 +546,7 @@ augroup fugitive
\ setlocal foldtext=fugitive#Foldtext() |
\ endif
autocmd FileType fugitive
\ call fugitive#MapCfile('fugitive#StatusCfile()')
\ call fugitive#MapCfile('fugitive#PorcelainCfile()')
autocmd FileType gitrebase
\ let &l:include = '^\%(pick\|squash\|edit\|reword\|fixup\|drop\|[pserfd]\)\>' |
\ if &l:includeexpr !~# 'Fugitive' |