Skip to content

Add prune support to Repository.fetch - #28

Merged
odrobnik merged 2 commits into
mainfrom
agent/issue-27
Jul 14, 2026
Merged

Add prune support to Repository.fetch#28
odrobnik merged 2 commits into
mainfrom
agent/issue-27

Conversation

@odrobnik

Copy link
Copy Markdown
Contributor

Resolves #27.

Adds an opt-in prune parameter to Repository.fetch, forwarding it to libgit2's fetch prune option while preserving the existing default behavior. Includes an integration test covering stale-ref retention by default and removal with pruning enabled.

Verified with:

  • swift build --build-tests --scratch-path /Volumes/SSD/SwiftPM/GitKit-issue-27
  • swift test --skip-build --scratch-path /Volumes/SSD/SwiftPM/GitKit-issue-27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 36ef9bfcdd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/GitKit/Repository+Clone.swift Outdated
@odrobnik
odrobnik merged commit 1038c50 into main Jul 14, 2026
6 checks passed
@odrobnik
odrobnik deleted the agent/issue-27 branch July 14, 2026 09:11
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.

Add prune support to Repository.fetch

1 participant