refactor(git): URI scheme is now a git revspec, loaded via cat-file -p

This commit is contained in:
2026-04-28 13:20:38 +02:00
parent a0c87b9b7b
commit 68f2ad1b52
6 changed files with 55 additions and 56 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ local M = {}
function M.show(worktree, ref, opts)
local split = opts and opts.split
local sha = repo.rev_parse(worktree, ref, true) or ref
local name = "git://" .. sha .. "//"
local name = "git://" .. sha
-- Commit SHAs are immutable so a previously-opened buffer is still
-- valid. Reuse it instead of refetching.
local existing = vim.fn.bufnr(name)