From 1d8c0a38b2fc4ce9ca4204676573b6335725ff75 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 18 Sep 2019 21:54:22 -0400 Subject: [PATCH] Show first parent diff for merge commits Closes https://github.com/tpope/vim-fugitive/issues/1121 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index c7f9d19..32d7a7c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1971,7 +1971,7 @@ function! fugitive#BufReadCmd(...) abort if b:fugitive_display_format call s:ReplaceCmd([dir, 'cat-file', b:fugitive_type, rev]) else - call s:ReplaceCmd([dir, 'show', '--no-color', '--pretty=format:tree%x20%T%nparent%x20%P%nauthor%x20%an%x20<%ae>%x20%ad%ncommitter%x20%cn%x20<%ce>%x20%cd%nencoding%x20%e%n%n%s%n%n%b', rev]) + call s:ReplaceCmd([dir, 'show', '--no-color', '-m', '--first-parent', '--pretty=format:tree%x20%T%nparent%x20%P%nauthor%x20%an%x20<%ae>%x20%ad%ncommitter%x20%cn%x20<%ce>%x20%cd%nencoding%x20%e%n%n%s%n%n%b', rev]) keepjumps call search('^parent ') if getline('.') ==# 'parent ' silent keepjumps delete_ -- 2.11.4.GIT