Support jump to commit in :Git log --graph

This commit is contained in:
Tim Pope
2021-08-27 10:43:10 -04:00
parent 18fd27e2cc
commit 4f747add5e

View File

@@ -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]