docs: expand v5→v6 migration guide with all tracked breaking changes#6
Merged
docs: expand v5→v6 migration guide with all tracked breaking changes#6
Conversation
Agent-Logs-Url: https://github.com/go-git/docs/sessions/96c8592d-dce5-4ee4-a282-f72b722a3de4 Co-authored-by: pjbgf <5452977+pjbgf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add documentation for API changes between go-git v5.x and v6.0.0
docs: expand v5→v6 migration guide with all tracked breaking changes
Apr 2, 2026
pjbgf
approved these changes
Apr 3, 2026
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.
The existing migration page was a 22-line stub. This rewrites it into a complete guide covering every item in go-git/go-git#910.
Structure
Repository.Close()now required (PR #1906)git.PlainCloneisBarepositional param removed →CloneOptions.BareFetch(PR #1459)plumbing.TagMode→git.TagModeconfig.Version_0/1→config.Version0/1(PR #1771)commitgraph.Indexgainedio.Closer+ new methods (PR #854)osfs.BoundOSis now the default forPlain*operationsbranch.*.mergeconfig validation relaxed (PR #1923)DiffTreeWithOptionsdeprecation,Worktree.Add/AddGlobdeprecation,Validatesignature change#706,#899), global git config (#395), new transport API, furtherrepository.gochangesAlso adds
.gitignoreto exclude thesite/mkdocs build artefact directory.Original prompt
This pull request was created from Copilot chat.