docs(git): trim verbose comments and fix prose-rule violations
This commit is contained in:
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user