Skip to content

feat: never fetch tags after the initial clone#79

Merged
dwilding merged 3 commits intomainfrom
support-tags
Feb 20, 2026
Merged

feat: never fetch tags after the initial clone#79
dwilding merged 3 commits intomainfrom
support-tags

Conversation

@dwilding
Copy link
Copy Markdown
Owner

This PR clarifies how gimmegit handles tags. Since gimmegit is for manipulating branches, all fetch operations including git update-branch specify --no-tags. If the user wants to clone tags, they can provide -- --tags to gimmegit, or they can manually fetch tags at any time using git fetch --tags.

Copilot AI review requested due to automatic review settings February 20, 2026 07:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR clarifies gimmegit's tag handling policy by documenting that tags are never fetched after the initial clone. Since gimmegit focuses on branch manipulation, all fetch operations now consistently use --no-tags, and users can only fetch tags during the initial clone by providing -- --tags or manually afterward.

Changes:

  • Renamed "GIT OPTIONS" to "GIT CLONE OPTIONS" to clarify that the documented options apply specifically to the initial clone operation
  • Removed TODO comments about replacing no_tags parameter, confirming the tag handling strategy
  • Updated the update-branch alias to display --no-tags in its command output for transparency
  • Refactored clone function to use native single_branch=True parameter instead of passing it as a string option

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/gimmegit/_help.py Updated section header to "GIT CLONE OPTIONS" for clarity
src/gimmegit/_cli.py Refactored clone to use native parameter, added --no-tags to update-branch display, removed TODO comments
README.md Updated section header to "GIT CLONE OPTIONS" to match help text

@dwilding dwilding merged commit c5467cc into main Feb 20, 2026
12 checks passed
@dwilding dwilding deleted the support-tags branch February 20, 2026 07:38
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.

2 participants