fix(git): rename show() to open()

This commit is contained in:
2026-04-29 11:11:45 +02:00
parent 18b198f293
commit e5c049bdaa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ function M.setup()
sidebar.toggle, sidebar.toggle,
{ desc = "Toggle git status sidebar" } { desc = "Toggle git status sidebar" }
) )
vim.keymap.set("n", "<leader>gl", log.show, { desc = "Show git log" }) vim.keymap.set("n", "<leader>gl", log.open, { desc = "Show git log" })
vim.keymap.set("n", "<leader>gd", function() vim.keymap.set("n", "<leader>gd", function()
diff.split({ revspec = "", vertical = true }) diff.split({ revspec = "", vertical = true })
end, { desc = "Diff index vs worktree (vsplit)" }) end, { desc = "Diff index vs worktree (vsplit)" })
+1 -1
View File
@@ -10,7 +10,7 @@ local DEFAULT_MAX_COUNT = 1000
---@field max_count integer? cap on commits to show. Nil uses the default, <= 0 means "all" ---@field max_count integer? cap on commits to show. Nil uses the default, <= 0 means "all"
---@param opts ow.Git.LogOpts? ---@param opts ow.Git.LogOpts?
function M.show(opts) function M.open(opts)
opts = opts or {} opts = opts or {}
local max_count = opts.max_count local max_count = opts.max_count
if max_count == nil then if max_count == nil then