From 4f747add5ec78dc7ea49e1062b376604fe32d418 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 27 Aug 2021 10:43:10 -0400 Subject: [PATCH] Support jump to commit in :Git log --graph --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b25a6a2..cd36a39 100644 --- 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]