git

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package git exposes git command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(ctx context.Context, args ...string) error

Clean runs git clean with given args.

func Diff

func Diff(ctx context.Context, args ...string) error

Diff runs git diff with given args.

func DiffFilesWithExit

func DiffFilesWithExit(ctx context.Context, args ...string) error

DiffFiles runs git diff --exit-code -- arg1 arg2... If change is detected error is returned.

func Git

func Git(ctx context.Context, args ...string) error

Git is shorthand for git executable provided by system.

func Untracked added in v1.4.5

func Untracked(ctx context.Context, args ...string) error

Untracked runs git ls-files --exclude-standard --others arg1 arg2... If untracked file is detected error is returned.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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