From 1ed26db43aae08a52e01fa9a4db44427d7627943 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 11 Nov 2009 21:37:42 -0500 Subject: [PATCH] Don't show "parent " line in first commit --- plugin/fugitive.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 1721e7e..b3053b6 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1157,9 +1157,13 @@ function! s:BufReadObject() else call s:ReplaceCmd(s:repo().git_command('show','--pretty=format:tree %T%nparent %P%nauthor %an <%ae> %ad%ncommitter %cn <%ce> %cd%nencoding %e%n%n%s%n%n%b',hash)) call search('^parent ') - silent s/\%(^parent\)\@\)\=$','W',line('.')+3) - silent delete + silent delete_ end 1 endif