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"
|
---@param kind "index"|"HEAD"|"worktree"
|
||||||
---@return ow.Git.DiffSide
|
---@return ow.Git.DiffSide
|
||||||
local function absent_pane(worktree, path, kind)
|
local function absent_pane(worktree, path, kind)
|
||||||
|
local rel = vim.fn.fnamemodify(vim.fs.joinpath(worktree, path), ":.")
|
||||||
return {
|
return {
|
||||||
buf = util.empty_buf(),
|
buf = util.empty_buf(),
|
||||||
name = string.format(
|
name = string.format("[absent %s] %s", kind, rel),
|
||||||
"[absent %s] %s",
|
|
||||||
kind,
|
|
||||||
vim.fs.joinpath(worktree, path)
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user