refactor(git): unify around the Repo abstraction
This commit is contained in:
@@ -111,7 +111,8 @@ require("nvim-tree").setup({
|
||||
full_name = true,
|
||||
root_folder_label = function(path)
|
||||
local label = vim.fn.fnamemodify(path, ":~")
|
||||
local git_head = require("git.repo").head(path)
|
||||
local r = require("git.repo").resolve(path)
|
||||
local git_head = r and r:head()
|
||||
if git_head then
|
||||
label = label .. (" %s"):format(git_head)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user