enum

package
v1.0.4-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiffExtHeaderOldMode         = "old mode"            // old mode <mode>
	DiffExtHeaderNewMode         = "new mode"            // new mode <mode>
	DiffExtHeaderDeletedFileMode = "deleted file mode"   // deleted file mode <mode>
	DiffExtHeaderNewFileMode     = "new file mode"       // new file mode <mode>
	DiffExtHeaderCopyFrom        = "copy from"           // copy from <path>
	DiffExtHeaderCopyTo          = "copy to"             // copy to <path>
	DiffExtHeaderRenameFrom      = "rename from"         // rename from <path>
	DiffExtHeaderRenameTo        = "rename to"           // rename to <path>
	DiffExtHeaderSimilarity      = "similarity index"    // similarity index <number>
	DiffExtHeaderDissimilarity   = "dissimilarity index" // dissimilarity index <number>
	DiffExtHeaderIndex           = "index"               // index <hash>..<hash> <mode>
)

Diff file header extensions. From: https://git-scm.com/docs/git-diff#generate_patch_text_with_p

Variables

Functions

This section is empty.

Types

type EntryMode

type EntryMode int

EntryMode is the unix file mode of a tree entry.

const (
	EntryTree    EntryMode = 0040000
	EntryBlob    EntryMode = 0100644
	EntryExec    EntryMode = 0100755
	EntrySymlink EntryMode = 0120000
	EntryCommit  EntryMode = 0160000
)

There are only a few file modes in Git. They look like unix file modes, but they can only be one of these.

type FileDiffStatus

type FileDiffStatus string
const (
	FileDiffStatusUndefined FileDiffStatus = "UNDEFINED"
	FileDiffStatusAdded     FileDiffStatus = "ADDED"
	FileDiffStatusModified  FileDiffStatus = "MODIFIED"
	FileDiffStatusDeleted   FileDiffStatus = "DELETED"
	FileDiffStatusRenamed   FileDiffStatus = "RENAMED"
	FileDiffStatusCopied    FileDiffStatus = "COPIED"
)

type LastCommitCacheMode

type LastCommitCacheMode string

LastCommitCacheMode specifies the type of the cache used for caching last commit information.

const (
	LastCommitCacheModeInMemory LastCommitCacheMode = "inmemory"
	LastCommitCacheModeRedis    LastCommitCacheMode = "redis"
	LastCommitCacheModeNone     LastCommitCacheMode = "none"
)

type MergeMethod

type MergeMethod string

MergeMethod represents the approach to merge commits into base branch.

const (
	// MergeMethodMerge create merge commit.
	MergeMethodMerge MergeMethod = "merge"
	// MergeMethodSquash squash commits into single commit before merging.
	MergeMethodSquash MergeMethod = "squash"
	// MergeMethodRebase rebase before merging.
	MergeMethodRebase MergeMethod = "rebase"
)

func (MergeMethod) Sanitize

func (m MergeMethod) Sanitize() (MergeMethod, bool)

type RefType

type RefType int
const (
	RefTypeUndefined RefType = iota
	RefTypeRaw
	RefTypeBranch
	RefTypeTag
	RefTypePullReqHead
	RefTypePullReqMerge
)

func (RefType) String

func (t RefType) String() string

Jump to

Keyboard shortcuts

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