A macOS menu-bar app that keeps a list of git repos up to date with git pull --rebase.
Replaces the old pull-repos.sh + launchd agent.
./build.sh # -> PullRepos.app, then: open PullRepos.app
build.sh points DEVELOPER_DIR at Xcode because SwiftUI's macro plugin does not ship
with the Command Line Tools toolchain — without it @State fails to expand. Same reason
tests need the prefix:
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer swift test
Repos, pull interval, launch-at-login and failure notifications are all in Settings. A repo is skipped, never failed, when it is not a git repo, has a detached HEAD, is not on its expected branch (blank = main or master), or has no upstream.
Uncommitted changes are handled with git pull --rebase --autostash, but only after
checking that the incoming commits do not touch any dirty or untracked file — git exits 0
even when an autostash pop leaves conflict markers, so the repo is skipped instead. A
post-pull git ls-files --unmerged check catches it regardless.