You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Push and Diff each pick tracked pages and sort them with their own copy of the code, and their nil checks are opposite (push.go: titles != nil means "these"; diff.go: titles == nil means "all"). In both, a non-nil empty slice selects nothing, so main works around it twice:
cmdDiff has its own inline copy of reportUntracked.
Status, Diff and isClean call fileExists and then os.ReadFile, which stats the file twice. ReadFile plus errors.Is(err, fs.ErrNotExist) covers both.
Fix: one manifest method returns the tracked titles in order, with no names meaning all. Push, Diff and both commands use it, and cmdDiff uses reportUntracked.
Activity