-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
DiffState.loadForWorktree() and loadForProject() are near-identical — both cancel the previous task, set state, launch a task that calls fetchUnstaged + fetchPRs, and start watching. The only differences are which path/branch they use and which current* property they set.
Location
apps/purepoint-macos/purepoint-macos/State/DiffState.swift — lines 30-60
Suggested Fix
Extract a shared load(path:branch:) and have both public methods call it after setting the appropriate current* properties.
🤖 Generated with Claude Code
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request