pull-all: report unpushed commits on the current branch, not up to date #288
No reviewers
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/tools!288
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/pull-all-unpushed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owner summary
What changes:
pull-allno longer reports a checkout whose current branch is ahead of its upstream as "up to date". Any branch —masterincluded, in default mode — now printsunpushed [on <branch> — N unpushed commits]and skips the pull, the state side branches under--switchalready got.What stays identical: clean repos pull exactly as before; dirty, host-provided and no-upstream handling are untouched;
--switchstill switches clean side branches to the default.What proves it:
tests/workspace/pull-all.sh, 41/41 passing on this VM, including new cases for an ahead default branch and an ahead side branch in both modes, each asserting the pull never runs.If it is wrong: say so and the PR gets reverted; the old reporting returns verbatim.
Residual risk: R1 — one script, caller-level mock tests, straight-revert rollback.
One behavior worth knowing: a diverged branch (ahead and behind) now skips with a count of both sides instead of attempting a merge; the count is the same symmetric difference the old
--switchpath printed, and the skip names itself.Closes allod/tools#287.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.