mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:40:04 +08:00
perf(git.vim): ignore remote info
This commit is contained in:
parent
cab92e17d3
commit
6952502638
4
bundle/git.vim/autoload/git/push.vim
vendored
4
bundle/git.vim/autoload/git/push.vim
vendored
@ -57,7 +57,7 @@ endfunction
|
|||||||
|
|
||||||
|
|
||||||
function! s:on_stdout(id, data, event) abort
|
function! s:on_stdout(id, data, event) abort
|
||||||
for line in filter(a:data, '!empty(v:val)')
|
for line in filter(a:data, '!empty(v:val) && v:val !=# "^remote:"')
|
||||||
let s:NOTI.notify_max_width = max([strwidth(line) + 5, s:NOTI.notify_max_width])
|
let s:NOTI.notify_max_width = max([strwidth(line) + 5, s:NOTI.notify_max_width])
|
||||||
call s:NOTI.notify(line, 'Normal')
|
call s:NOTI.notify(line, 'Normal')
|
||||||
endfor
|
endfor
|
||||||
@ -69,7 +69,7 @@ endfunction
|
|||||||
" why git push normal info to stderr
|
" why git push normal info to stderr
|
||||||
|
|
||||||
function! s:on_stderr(id, data, event) abort
|
function! s:on_stderr(id, data, event) abort
|
||||||
call extend(s:std_data.stderr, a:data)
|
call extend(s:std_data.stderr, filter(a:data, '!empty(v:val) && v:val !=# "^remote:"'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:options() abort
|
function! s:options() abort
|
||||||
|
Loading…
Reference in New Issue
Block a user