1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 04:10:06 +08:00

perf(git): use notify instead of echo

This commit is contained in:
wsdjeg 2022-10-27 00:27:02 +08:00
parent 975e1d5088
commit 91fd3ad573
2 changed files with 3 additions and 2 deletions

View File

@ -379,6 +379,7 @@ function! s:show_diff_of_unstaged_hunks() abort
endfunction endfunction
function! s:fetch_repo() abort function! s:fetch_repo() abort
Git fetch
endfunction endfunction
function! s:pull_repo() abort function! s:pull_repo() abort

View File

@ -27,9 +27,9 @@ endfunction
function! s:on_exit(...) abort function! s:on_exit(...) abort
let data = get(a:000, 2) let data = get(a:000, 2)
if data != 0 if data != 0
echo 'failed!' call s:NOTI.notify('Git push failed!', 'WarningMsg')
else else
echo 'done!' call s:NOTI.notify('Git push done!')
endif endif
endfunction endfunction