mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Show unpulled before unpushed
This is what Magit does and I *think* it makes sense because you have to pull before you can push.
This commit is contained in:
@@ -1884,17 +1884,17 @@ function! fugitive#BufReadStatus() abort
|
||||
call s:AddSection('Staged', staged)
|
||||
let staged_end = len(staged) ? line('$') : 0
|
||||
|
||||
if len(push) && !(push ==# pull && get(props, 'branch.ab') =~# '^+0 ')
|
||||
call s:AddSection('Unpushed to ' . push, s:QueryLog(push . '..' . head))
|
||||
endif
|
||||
if len(pull) && push !=# pull
|
||||
call s:AddSection('Unpushed to ' . pull, s:QueryLog(pull . '..' . head))
|
||||
if len(pull) && get(props, 'branch.ab') !~# ' -0$'
|
||||
call s:AddSection('Unpulled from ' . pull, s:QueryLog(head . '..' . pull))
|
||||
endif
|
||||
if len(push) && push !=# pull
|
||||
call s:AddSection('Unpulled from ' . push, s:QueryLog(head . '..' . push))
|
||||
endif
|
||||
if len(pull) && get(props, 'branch.ab') !~# ' -0$'
|
||||
call s:AddSection('Unpulled from ' . pull, s:QueryLog(head . '..' . pull))
|
||||
if len(pull) && push !=# pull
|
||||
call s:AddSection('Unpushed to ' . pull, s:QueryLog(pull . '..' . head))
|
||||
endif
|
||||
if len(push) && !(push ==# pull && get(props, 'branch.ab') =~# '^+0 ')
|
||||
call s:AddSection('Unpushed to ' . push, s:QueryLog(push . '..' . head))
|
||||
endif
|
||||
|
||||
setlocal nomodified readonly noswapfile
|
||||
|
||||
Reference in New Issue
Block a user