Skip to content

Share One Porcelain Status Parser Between carry.py and the CLI Usage Gate #2947

Closed

Description

@ptr727

tests/test_cli_usage.py's tree_state() (added by #2944) parses git status --porcelain=v1 -z records itself, taking the second field of a rename or copy, while scripts/carry.py's git_status_paths() already parses the same records and also refuses a malformed or incomplete one. A fix to either parser reaches only one copy.

The gate needs two things the existing helper does not give: --ignored in the status call, and the two-character status code beside each path. The consolidation is to extend git_status_paths() (or a shared helper beside it) to take an ignored option and return (status, path) pairs, then have tree_state() call it.

#2944 did not do this because its lane could edit only tests/test_cli_usage.py, spec/resolve_description.py and repo-config/configure.sh, so scripts/carry.py was out of reach.

Activity

  1. added
    gate
    introduced
    on Oct 13, 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

    gateintroduced

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions