Documentation
¶
Overview ¶
Package git provides the Git change detection plugin for TerraCi.
Index ¶
- type Config
- type Plugin
- func (p *Plugin) DetectChangedLibraries(_ context.Context, workDir, baseRef string, libraryPaths []string) ([]string, error)
- func (p *Plugin) DetectChangedModules(_ context.Context, workDir, baseRef string, moduleIndex *discovery.ModuleIndex) ([]*discovery.Module, []string, error)
- func (p *Plugin) Preflight(_ context.Context, appCtx *plugin.AppContext) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.10.1
type Config struct {
// AutoUnshallow tells the plugin to deepen a shallow clone via
// `git fetch --unshallow` before computing a diff. When false (default),
// the plugin returns ErrShallowRepository so the user explicitly opts
// into mutating their working copy.
AutoUnshallow bool `` /* 201-byte string literal not displayed */
}
Config controls the git change-detection plugin.
type Plugin ¶
type Plugin struct {
plugin.BasePlugin[*Config]
}
Plugin is the Git change detection plugin.
func (*Plugin) DetectChangedLibraries ¶
func (p *Plugin) DetectChangedLibraries(_ context.Context, workDir, baseRef string, libraryPaths []string) ([]string, error)
DetectChangedLibraries returns library paths changed since the given base ref.
Click to show internal directories.
Click to hide internal directories.