fugitive-origin-head.patch 548 B

1234567891011121314
  1. diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
  2. index ce16048..2182c1b 100644
  3. --- a/autoload/fugitive.vim
  4. +++ b/autoload/fugitive.vim
  5. @@ -2906,6 +2906,9 @@ function! fugitive#BufReadStatus(...) abort
  6. if len(pull) && get(props, 'branch.ab') !~# ' -0$'
  7. call s:AddLogSection('Unpulled from ' . pull, [head . '..' . pull])
  8. endif
  9. + if len(push) && push ==# pull
  10. + call s:AddLogSection('Pushed to ' . push, ['origin/HEAD..' . push])
  11. + endif
  12. setlocal nomodified readonly noswapfile
  13. doautocmd BufReadPost