Migrating from v5 to v6
Warning: This documentation targets the v6 version of go-git, and it is subject to change until v6 is officially released.
The v6 release of go-git brings significant changes to the API. This guide will help you migrate your code from v5 to v6.
Changes to git package:
- The
bareargument has been removed fromgit.PlainCloneandgit.PlainInit. A new fieldBarehas been added togit.CloneOptionsandgit.InitOptionsto indicate whether the repository should be cloned as a bare repository. The same applies to the*Context()versions of these functions.
Changes to plumbing package:
plumbing.TagModehas been moved togit.TagMode.