motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 2e395fa4502f02ca413d38c0f010271ac98984db (tree)
parent 46404ad9376f38a0bf8421310373aefbc92e190d
Author: Tim Pope <code@tpope.net>
Date:   Wed,  1 Sep 2021 08:44:00 -0400

Provide FugitiveDidChange()

Diffstat:
Mplugin/fugitive.vim | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -210,6 +210,18 @@ function! FugitiveRemoteUrl(...) abort return call('fugitive#RemoteUrl', a:000) endfunction +" FugitiveDidChange() triggers a FugitiveChanged event and reloads the summary +" buffer for the current or given buffer number's repository. You can also +" give the result of a FugitiveExecute() and that context will be made +" available inside the FugitiveChanged() event. +" +" Passing the special argument 0 (the number zero) softly expires summary +" buffers for all repositories. This can be used after a call to system() +" with unclear implications. +function! FugitiveDidChange(...) abort + return call('fugitive#DidChange', a:000) +endfunction + " FugitiveHead() retrieves the name of the current branch. If the current HEAD " is detached, FugitiveHead() will return the empty string, unless the " optional argument is given, in which case the hash of the current commit