Skip to content

family.py add, bump and remove: a merge or rebase in progress, an excluded .gitmodules or a members that is a file makes them fail after their first writes #612

Closed

Description

@brettheap

add, bump and remove should refuse, before their first write, a merge or rebase in progress, an excluded .gitmodules, and a members that is a file or excluded.

From the checklist triage of 2026-10-15; Brett Heap approved its recommendations at 2026-10-15T16:49:38Z. One pull request covers the lines below.

Lands after: #571 and #574.

Lines

Rides along (backlog; tick it here if the same change covers it)

Each line above is marked → this issue on its tracking issue. Tick it there too when this closes.

The lines as written on the tracking issues

Every family.py verb run during a merge, cherry-pick or rebase fails at its commit, after its first writes, and is rolled back.

— #459, comment

A sparse checkout whose rules leave .gitmodules out, with the file put back on disk by hand.

— #459, comment

add refuses two states late: a FILE named members, and a sparse checkout that leaves members/ out.

  • Both pass the checks. The member is read and mounted, git submodule add then fails, and the unwind restores the holder.
  • Both could be refused up front, the second naming git sparse-checkout add members.

— #459, comment

Activity

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

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-15T20:36:48Z, for #612

    Logged in lanes/log/openRepoShape-4.md at cfde104e715628f3704fd150f5e4001b8bad7468.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#612:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#612"`, kept where the row or its body names `#612`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `612` as a whole token:
       none
    
  3. added 2 commits that reference this issue on Oct 15, 2026
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