chore(git): consistent error reporting on git failures

This commit is contained in:
2026-04-27 13:33:09 +02:00
parent 20dc6cc3c9
commit 6e0e05ae56
5 changed files with 81 additions and 14 deletions
+2
View File
@@ -25,6 +25,8 @@ function M.commit(opts)
):wait()
if result.code == 0 then
initial = (result.stdout or ""):gsub("\n+$", "")
else
log.warning("git log -1 failed: %s", vim.trim(result.stderr or ""))
end
end