commit 4f747add5ec78dc7ea49e1062b376604fe32d418 (tree)
parent 18fd27e2ccc6646db98e69d6c87e86bdccea16ff
Author: Tim Pope <code@tpope.net>
Date: Fri, 27 Aug 2021 10:43:10 -0400
Support jump to commit in :Git log --graph
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -7478,7 +7478,7 @@ function! s:cfile() abort
if getline('.') =~# '^ref: '
let ref = strpart(getline('.'),5)
- elseif getline('.') =~# '^commit \x\{40,\}\>'
+ elseif getline('.') =~# '^\%([|/\\_ ]*\*[|/\\_ ]*\)\=commit \x\{40,\}\>'
let ref = matchstr(getline('.'),'\x\{40,\}')
return [ref]