refactor(git): unify object opening through read_uri's diff-on-commit path

This commit is contained in:
2026-04-29 11:55:15 +02:00
parent 8a4c9131e2
commit 49c618959d
2 changed files with 64 additions and 103 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ vim.keymap.set("n", "<CR>", function()
.nvim_get_current_line()
:match("^[*|/\\_ ]*(%x%x%x%x%x%x%x+)")
if sha then
require("git.object").open_commit(worktree, sha, { split = false })
require("git.object").open_object(worktree, sha, { split = false })
else
-- "n" mode = no remap, so this doesn't recurse into our mapping.
vim.api.nvim_feedkeys(cr, "n", false)