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 7ab4ab97965d90095e0a3ac4061d76058b2e4c43 (tree)
parent 295780c507ec5710523a4dc5c7d289157a989cdb
Author: Tim Pope <code@tpope.net>
Date:   Mon, 26 Jul 2021 07:00:06 -0400

Document FugitiveGitDir()

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

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -10,6 +10,10 @@ let g:loaded_fugitive = 1 let s:bad_git_dir = '/$\|^fugitive:' +" FugitiveGitDir() returns the detected Git dir for the given buffer number, +" or the current buffer if no argument is passed. This will be an empty +" string if no Git dir was found. Use !empty(FugitiveGitDir()) to check if +" Fugitive is active in the current buffer. function! FugitiveGitDir(...) abort if v:version < 704 return ''