refactor(git): rename refresh event to change, gate on actual diff

This commit is contained in:
2026-05-19 10:42:13 +02:00
parent 085216a406
commit ab9b70c70a
7 changed files with 25 additions and 16 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ local function update_buf(buf, r)
set_status(buf, r, rel)
end
repo.on("refresh", function(r)
repo.on("change", function(r)
local any_visible = false
for buf in pairs(r.buffers) do
if vim.api.nvim_buf_is_loaded(buf) then