Skip to content

bump-leg.py and setup-project.py: the git switch -c line fails "already exists" when an earlier act left that branch, and nothing says what to do (#607's sentence, in the two tools #607 left) #647

Closed

Description

@brettheap

Goal: every git switch -c a tool of this standard prints says what to do when the branch already exists, in one set of words.

Filed by lane openRepoShape-5 on Brett Heap's word of 2026-10-16T11:21:49Z ("BRANCH_LEFT in bump-leg, setup"), from lane 5's checklist items on #458 (comment) and #459 (comment). Found by lane 5's #607 writer; the bump-leg line was confirmed by a probe in review rv607.

Lands after: #637 (#607), which adds the sentence BRANCH_LEFT to family.py and the holder's validate-family.py.

Lines

Direction: the sentence #637 adds, word for word where it fits ("If git switch -c says that branch already exists, an earlier act left it: give the branch another name, which starts it where the holder stands, or, only if that branch holds work not merged yet, the same command with switch in place of switch -c goes back to it and keeps every commit on it."), with "the project" for "the holder" in bump-leg.py. Tests that type each printed line in both states, as #637's do.

Mark both lines → this issue on #458 and #459, and tick them there when this closes.

🤖 Generated with Claude Code

Activity

  1. added this to the v1.1.0 milestone on Oct 16, 2026
  2. brettheap commented on Oct 16, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-16T11:29:46Z, for #647

    Logged in lanes/log/openRepoShape-5.md at df137fddda8da48ce7f926f32e28b8ad76875ae2.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#647:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#647"`, kept where the row or its body names `#647`:
       none
    3. `git ls-remote --heads git@github.com:opensoft/openRepoShape` branches naming `647` as a whole token:
       none
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions