fix(git): show [absent ...] paths relative to cwd

This commit is contained in:
2026-04-29 17:53:56 +02:00
parent 09955cf9b9
commit 3210fe1124
+2 -5
View File
@@ -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