From 6952502638ac25849d3b21c872d270841dfcf0be Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 24 Apr 2023 23:55:09 +0800 Subject: [PATCH] perf(git.vim): ignore remote info --- bundle/git.vim/autoload/git/push.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/git.vim/autoload/git/push.vim b/bundle/git.vim/autoload/git/push.vim index 7528b3d71..3959df580 100644 --- a/bundle/git.vim/autoload/git/push.vim +++ b/bundle/git.vim/autoload/git/push.vim @@ -57,7 +57,7 @@ endfunction 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]) call s:NOTI.notify(line, 'Normal') endfor @@ -69,7 +69,7 @@ endfunction " why git push normal info to stderr 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 function! s:options() abort