Skip to content

Import and export git tags through the store - #11

Merged
kridaydave merged 2 commits into
mainfrom
feat-import-export-tags
Sep 5, 2026
Merged

Import and export git tags through the store#11
kridaydave merged 2 commits into
mainfrom
feat-import-export-tags

Conversation

@kridaydave

@kridaydave kridaydave commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

PR made by muse-spark-1.3-contributor from opencode on behalf of Kriday.

Tags used to vanish on import since fetch skipped them and export only wrote branch refs. Now tags ride along both ways. Import peels each one to its commit, export writes them back out.

Summary:

  • Fetch refs/tags into the store odb on import, peel to commit, record change id
  • Export writes lightweight refs/tags with nearest-kept fallback under filtering
  • Withheld tags get omitted and logged, gc keeps tag targets alive
  • 3 new roundtrip tests, full suite plus clippy and fmt clean

fetch_tags pulls refs/tags into the odb, import peels each tag to its commit and records the change id, export writes lightweight refs walking withheld history to the nearest kept ancestor. Tag objects and messages are not preserved. GC keeps tag targets alive via reachable_changes.
@kridaydave
kridaydave merged commit e3e90b3 into main Sep 5, 2026
5 checks passed
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