Documentation
¶
Overview ¶
Package diff provides functionality to check if files in a module set have changed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.10.0
type Client interface { HeadCommit(r *git.Repository) (*object.Commit, error) TagCommit(r *git.Repository, tag string) (*object.Commit, error) FilesChanged(headCommit *object.Commit, tagCommit *object.Commit, prefix string, suffix string) ([]string, error) }
Client is an interface for a git client. It is used to abstract away the implementation details of the git client, allowing for easier testing and mocking.
type GitClient ¶ added in v0.10.0
type GitClient struct{}
GitClient handles interactions with git.
func (GitClient) FilesChanged ¶ added in v0.10.0
func (g GitClient) FilesChanged(headCommit *object.Commit, tagCommit *object.Commit, prefix string, suffix string) ([]string, error)
FilesChanged returns a list of files that have changed between two commits.
func (GitClient) HeadCommit ¶ added in v0.10.0
HeadCommit returns the commit object for the HEAD of the repository.
Click to show internal directories.
Click to hide internal directories.