git

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusTypeUnchanged = "Unchanged"
	StatusTypeModified  = "Modified"
	StatusTypeAdded     = "Added"
	StatusTypeDeleted   = "Deleted"
	StatusTypeRenamed   = "Renamed"
	StatusTypeCopied    = "Copied"
	StatusTypeUntracked = "Untracked"
	StatusTypeIgnored   = "Ignored"
)

Variables

This section is empty.

Functions

func GetGitPlan

func GetGitPlan(
	plan string,
	localShuttleDirectoryPath string,
	uii *ui.UI,
	skipGitPlanPulling bool,
	planArgument string,
) (string, error)

GetGitPlan will pull git repository and return its path

func IsPlan added in v0.13.0

func IsPlan(plan string) bool

IsPlan returns true if specified plan is a git plan

func RunGitPlanCommand

func RunGitPlanCommand(command string, plan string, uii *ui.UI)

Types

type FileStatus

type FileStatus struct {
	FilePath         string
	OriginalFilePath string
	WorkTreeStatus   StatusType
	IndexStatus      StatusType
}

type Plan added in v0.13.0

type Plan struct {
	IsGitPlan  bool
	Protocol   string
	User       string
	Host       string
	Repository string
	Head       string
}

func ParsePlan added in v0.13.0

func ParsePlan(plan string) Plan

type Status

type Status struct {
	// contains filtered or unexported fields
}

type StatusType

type StatusType string

Jump to

Keyboard shortcuts

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