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