git

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package git provides the Git change detection plugin for TerraCi.

Index

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.

func (*Plugin) DetectChangedModules

func (p *Plugin) DetectChangedModules(_ context.Context, workDir, baseRef string, moduleIndex *discovery.ModuleIndex) ([]*discovery.Module, []string, error)

DetectChangedModules returns modules changed since the given base ref.

func (*Plugin) Preflight added in v0.9.0

func (p *Plugin) Preflight(_ context.Context, appCtx *plugin.AppContext) error

Preflight verifies whether the workdir is a git repository.

Directories

Path Synopsis
Package git provides Git integration for detecting changed files.
Package git provides Git integration for detecting changed files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL