refactor(git): drop :Ghistory buffer in favor of :G! for full output
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
local commit = require("git.commit")
|
||||
local history = require("git.history")
|
||||
local object = require("git.object")
|
||||
local repo = require("git.repo")
|
||||
local util = require("git.util")
|
||||
@@ -386,13 +385,11 @@ local function run_streaming(r, args)
|
||||
last_progress ~= "" and last_progress or "done",
|
||||
"success"
|
||||
)
|
||||
history.append(args, accum)
|
||||
else
|
||||
emit_progress(("exit %d"):format(code), "failed")
|
||||
local body = #accum > 0 and table.concat(accum, "\n")
|
||||
or ("%s failed: exit %d"):format(title, code)
|
||||
vim.api.nvim_echo({ { body, "ErrorMsg" } }, true, {})
|
||||
history.append(args, accum)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user