docs(git): trim verbose comments and fix prose-rule violations

This commit is contained in:
2026-04-29 14:32:38 +02:00
parent 781496dc13
commit 81bc011b09
6 changed files with 57 additions and 96 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ end
function Repo:stop_watcher()
-- Stop the libuv watcher first so no further fs-events can trigger
-- self:refresh(); only then tear down the debounce handle. The reverse
-- self:refresh(). Only then tear down the debounce handle. The reverse
-- order leaves a window where an in-flight watcher callback would call
-- a closed debounce timer.
if self.watcher then
@@ -150,7 +150,7 @@ end
---@param repo ow.Git.Repo
local function do_refresh(repo)
-- `--branch` adds the `## branch...upstream [ahead/behind]` line that
-- the sidebar parses; the per-buffer indicator only needs the XY +
-- the sidebar parses. The per-buffer indicator only needs the XY +
-- path lines, so it ignores `##` lines below. Running with `--branch`
-- lets the sidebar reuse this single subprocess via the GitRefresh
-- data payload instead of spawning its own.