feat: never fetch tags after the initial clone#79
Merged
Conversation
There was a problem hiding this comment.
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-tagsin its command output for transparency - Refactored clone function to use native
single_branch=Trueparameter 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR clarifies how gimmegit handles tags. Since gimmegit is for manipulating branches, all fetch operations including
git update-branchspecify--no-tags. If the user wants to clone tags, they can provide-- --tagsto gimmegit, or they can manually fetch tags at any time usinggit fetch --tags.