refactor(git): unify diff/object dispatch, codify naming, add :Gdiffsplit

This commit is contained in:
2026-04-29 09:47:51 +02:00
parent 44f9503960
commit 5c5da7a854
10 changed files with 587 additions and 443 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
local git = require("git")
local repo = require("git.repo")
local util = require("git.util")
@@ -42,7 +41,7 @@ function M.show(opts)
return
end
local buf = git.new_scratch()
local buf = util.new_scratch()
vim.b[buf].git_worktree = worktree
vim.bo[buf].modifiable = true
vim.api.nvim_buf_set_lines(buf, 0, -1, false, util.split_lines(stdout))