Skip to content

Instantly share code, notes, and snippets.

@osa1
Last active February 18, 2021 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osa1/35078663d15fbdb88899663697b65774 to your computer and use it in GitHub Desktop.
Save osa1/35078663d15fbdb88899663697b65774 to your computer and use it in GitHub Desktop.
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
index 94cf8d0..4e58385 100644
--- a/autoload/fugitive.vim
+++ b/autoload/fugitive.vim
@@ -2147,7 +2147,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, '-c', 'diff.noprefix=false', '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])
+ call s:ReplaceCmd([dir, '-c', 'diff.noprefix=false', 'show', '--no-color', '-m', '--first-parent', '--pretty=format:commit%x20%H%ntree%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 1
keepjumps call search('^parent ')
if getline('.') ==# 'parent '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment