feat(#1837): add git.disable_for_dirs (#2239)

* feat(##1837): add git.disabled_dirs

* feat(#1837): add git.disable_for_dirs

* feat(#1837): note disable_for_dirs evaluation
This commit is contained in:
Alexander Courtis
2023-06-04 14:29:04 +10:00
committed by GitHub
parent 73ab6651db
commit 63061404f4
4 changed files with 21 additions and 3 deletions

View File

@@ -3,6 +3,9 @@ local log = require "nvim-tree.log"
local has_cygpath = vim.fn.executable "cygpath" == 1
--- Retrieve the git toplevel directory
--- @param cwd string path
--- @return string|nil toplevel absolute path
function M.get_toplevel(cwd)
local profile = log.profile_start("git toplevel %s", cwd)