feat(git): add cat-file-based commit view for gitlog <CR>

This commit is contained in:
2026-04-28 10:50:37 +02:00
parent 25eb671248
commit b9c314f059
2 changed files with 77 additions and 2 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.show").open_commit(worktree, sha, { split = false })
require("git.show").open_commit_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)