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,5 +1,4 @@
local editor = require("git.editor")
local git = require("git")
local repo = require("git.repo")
local util = require("git.util")
@@ -30,7 +29,7 @@ function M.commit(opts)
f:close()
end
local buf, win = git.new_scratch({ name = file_path })
local buf, win = util.new_scratch({ name = file_path })
proxy_buf = buf
proxy_win = win
vim.bo[buf].buftype = "acwrite"