From 91fd3ad57342870970a69a13c7f560be9d25620d Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 27 Oct 2022 00:27:02 +0800 Subject: [PATCH] perf(git): use notify instead of echo --- autoload/SpaceVim/layers/VersionControl.vim | 1 + bundle/git.vim/autoload/git/push.vim | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/layers/VersionControl.vim b/autoload/SpaceVim/layers/VersionControl.vim index 7670191aa..b08c08e4f 100644 --- a/autoload/SpaceVim/layers/VersionControl.vim +++ b/autoload/SpaceVim/layers/VersionControl.vim @@ -379,6 +379,7 @@ function! s:show_diff_of_unstaged_hunks() abort endfunction function! s:fetch_repo() abort + Git fetch endfunction function! s:pull_repo() abort diff --git a/bundle/git.vim/autoload/git/push.vim b/bundle/git.vim/autoload/git/push.vim index 0b18f62ab..462964bb4 100644 --- a/bundle/git.vim/autoload/git/push.vim +++ b/bundle/git.vim/autoload/git/push.vim @@ -27,9 +27,9 @@ endfunction function! s:on_exit(...) abort let data = get(a:000, 2) if data != 0 - echo 'failed!' + call s:NOTI.notify('Git push failed!', 'WarningMsg') else - echo 'done!' + call s:NOTI.notify('Git push done!') endif endfunction