Skip to content

refactor: simplify gitclone#99

Merged
alecthomas merged 1 commit intomainfrom
aat/simplify-gitclone
Feb 7, 2026
Merged

refactor: simplify gitclone#99
alecthomas merged 1 commit intomainfrom
aat/simplify-gitclone

Conversation

@alecthomas
Copy link
Collaborator

Moved gitclone.Manager shared config into top-level "git-clone" block. The clone manager is lazily constructed so that it will only be instantiated if something uses it.

I also simplified config use: we were requiring gitclone.Config as parameters to a bunch of methods for unknown reasons, when we can just include it in the Repository struct. I also removed configurable use of GitTuningConfig, as we only ever used defaults. If we need per-clone tuning later, we can figure it out.

Moved gitclone.Manager shared config into top-level "git-clone" block.
The clone manager is lazily constructed so that it will only be
instantiated if something uses it.

I also simplified config use: we were requiring gitclone.Config as
parameters to a bunch of methods for unknown reasons, when we can just
include it in the Repository struct. I also removed configurable use of
GitTuningConfig, as we only ever used defaults. If we need per-clone
tuning later, we can figure it out.
@alecthomas alecthomas requested a review from a team as a code owner February 7, 2026 06:35
@alecthomas alecthomas enabled auto-merge (squash) February 7, 2026 06:35
@alecthomas alecthomas merged commit c5f059c into main Feb 7, 2026
4 of 5 checks passed
@alecthomas alecthomas deleted the aat/simplify-gitclone branch February 7, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant