From 3f417d7ad144dbd57f1a207f6974b44a2725d8ba Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 2 Aug 2019 20:08:24 -0400 Subject: [PATCH] Enable fixup/squash maps in :Git log --- autoload/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 725a7a2..e0d007f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4881,6 +4881,8 @@ endfunction function! s:SquashArgument(...) abort if &filetype == 'fugitive' let commit = matchstr(getline('.'), '^\%(\%(\x\x\x\)\@!\l\+\s\+\)\=\zs[0-9a-f]\{4,\}\ze ') + elseif has_key(s:temp_files, s:cpath(expand('%:p'))) + let commit = matchstr(getline('.'), '\<\x\{4,\}\>') else let commit = s:Owner(@%) endif