fix(git): show [absent ...] paths relative to cwd
This commit is contained in:
+2
-5
@@ -493,13 +493,10 @@ end
|
||||
---@param kind "index"|"HEAD"|"worktree"
|
||||
---@return ow.Git.DiffSide
|
||||
local function absent_pane(worktree, path, kind)
|
||||
local rel = vim.fn.fnamemodify(vim.fs.joinpath(worktree, path), ":.")
|
||||
return {
|
||||
buf = util.empty_buf(),
|
||||
name = string.format(
|
||||
"[absent %s] %s",
|
||||
kind,
|
||||
vim.fs.joinpath(worktree, path)
|
||||
),
|
||||
name = string.format("[absent %s] %s", kind, rel),
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user