git

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

func ParsePlan

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