The highest tagged major version is
v2 .
Discover Packages
github.com/SAP/configuration-tools-for-gitops
pkg
git
package
Version:
v1.5.1
Opens a new window with list of versions in this module.
Published: Jul 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Repository struct {
Client *git.Repository
Path string
Remote string
MaxDepth int
}
New registers a new git repository. If there is a git repository already present
in "path", the url and remote will be validated and then the repository will be used.
Diff compares the provided GitTree c with g and returns a slice of changed
file paths.
FindFiles searches t for all instances of the provided pattern in the file
paths.
ReadFile reads the file at location filepath and returns its content as a string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.