stub

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package stub is the GitClient that touches nothing: every listing is empty, nothing has changed, and no directory is a repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client is the stub GitClient.

func (Client) ChangedSince

func (Client) ChangedSince(context.Context, string, string) ([]string, error)

ChangedSince returns none.

func (Client) Diff

func (Client) Diff(context.Context, string, ...string) ([]byte, error)

Diff returns nothing.

func (Client) HasPathsChanged

func (Client) HasPathsChanged(
	context.Context,
	string,
	string,
	string,
	[]string,
) (bool, error)

HasPathsChanged reports no change.

func (Client) IsRepo

func (Client) IsRepo(context.Context, string) bool

IsRepo reports false.

func (Client) LsFiles

func (Client) LsFiles(
	context.Context,
	string,
	[]string,
) ([]string, error)

LsFiles returns none.

func (Client) RevParse

func (Client) RevParse(
	_ context.Context,
	_, ref string,
) (string, error)

RevParse returns ref unchanged.

func (Client) StageFiles

func (Client) StageFiles(context.Context, string, []string) error

StageFiles does nothing.

func (Client) StagedFiles

func (Client) StagedFiles(context.Context, string, []string) ([]string, error)

StagedFiles returns none.

func (Client) Tag

Tag returns no tag.

Jump to

Keyboard shortcuts

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