Skip to content

Decompose models/_git_utils.py (1011 LOC) #539

Description

@tschm

Context

From the Rhiza quality assessment. src/rhiza/models/_git_utils.py is 1011 LOC — the single outsized module (next largest are commands/init.py 703 and commands/summarise.py 692). The package split is otherwise clean.

Subcategory / score

Code structure & readability 8 → 9.

Where

src/rhiza/models/_git_utils.py — split into cohesive submodules along functional seams (e.g. sparse-checkout, diff/merge, ref resolution) behind the existing public surface.

Acceptance criterion

Done when no single module exceeds ~500 LOC, the public import path is unchanged, and all 646 tests + the coverage gate still pass.

Scope: locally-owned (src/).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions