git

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 7 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 Plugin

type Plugin struct{}

Plugin is the Git change detection plugin.

func (*Plugin) Description

func (p *Plugin) Description() string

func (*Plugin) DetectChangedLibraries

func (p *Plugin) DetectChangedLibraries(_ context.Context, appCtx *plugin.AppContext, 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, appCtx *plugin.AppContext, baseRef string, moduleIndex *discovery.ModuleIndex) ([]*discovery.Module, []string, error)

DetectChangedModules returns modules changed since the given base ref.

func (*Plugin) Name

func (p *Plugin) Name() string

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