parent
cf60e54647
commit
ccc32c3164
1 changed files with 0 additions and 7 deletions
|
@ -447,14 +447,7 @@ endfunction
|
|||
" GFiles[?]
|
||||
" ------------------------------------------------------------------
|
||||
|
||||
" helper function to get the git root. Uses vim-fugitive if available for EXTRA SPEED!
|
||||
function! s:get_git_root()
|
||||
if exists('*fugitive#repo')
|
||||
try
|
||||
return fugitive#repo().tree()
|
||||
catch
|
||||
endtry
|
||||
endif
|
||||
let root = split(system('git rev-parse --show-toplevel'), '\n')[0]
|
||||
return v:shell_error ? '' : root
|
||||
endfunction
|
||||
|
|
Loading…
Add table
Reference in a new issue