refactor(git): URI scheme is now a git revspec, loaded via cat-file -p
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user