Extract has_repo_path() function

This commit is contained in:
Andy Stewart
2020-02-24 15:16:51 +00:00
parent 669357bb92
commit 8e368ae8d1
2 changed files with 5 additions and 7 deletions

View File

@@ -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