refactor(git): unify diff/object dispatch, codify naming, add :Gdiffsplit
This commit is contained in:
+1
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user