You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Fix TagMode migration direction in v5-to-v6 guide
Section 4 had the migration backwards. TagMode was moved FROM git package
TO plumbing package in v6, not the other way around.
In v5:
- Type was git.TagMode (defined in options.go)
- Constants were git.AllTags, git.NoTags, etc.
In v6:
- Type is plumbing.TagMode (moved to plumbing/tag.go)
- Constants git.AllTags, git.NoTags still work (aliased to plumbing constants)
- Most code needs no changes; only explicit type references need updating
This fixes the incorrect statement that plumbing.TagMode moved to git.TagMode.
References: go-git/go-git#1300 (PR that moved TagMode to plumbing)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
0 commit comments