mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 21:03:53 -05:00
Extract has_repo_path() function
This commit is contained in:
@@ -105,6 +105,10 @@ function! gitgutter#utility#system(cmd, ...) abort
|
||||
return output
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#has_repo_path(bufnr)
|
||||
return index(['', -1, -2], gitgutter#utility#repo_path(a:bufnr, 0)) == -1
|
||||
endfunction
|
||||
|
||||
" Path of file relative to repo root.
|
||||
"
|
||||
" * empty string - not set
|
||||
|
||||
Reference in New Issue
Block a user