Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IgnoredStatus ¶ added in v0.7.0
type IgnoredStatus struct {
Path string
}
An IgnoredStatus is a status of an ignored file.
type OrdinaryStatus ¶ added in v0.7.0
type OrdinaryStatus struct { X byte Y byte Sub string MH int64 MI int64 MW int64 HH string HI string Path string }
An OrdinaryStatus is a status of a modified file.
type ParseError ¶ added in v0.7.0
type ParseError string
A ParseError is a parse error.
func (ParseError) Error ¶ added in v0.7.0
func (e ParseError) Error() string
type RenamedOrCopiedStatus ¶ added in v0.7.0
type RenamedOrCopiedStatus struct { X byte Y byte Sub string MH int64 MI int64 MW int64 HH string HI string RC byte Score int64 Path string OrigPath string }
A RenamedOrCopiedStatus is a status of a renamed or copied file.
type Status ¶ added in v0.7.0
type Status struct { Ordinary []OrdinaryStatus RenamedOrCopied []RenamedOrCopiedStatus Unmerged []UnmergedStatus Untracked []UntrackedStatus Ignored []IgnoredStatus }
A Status is a status.
func ParseStatusPorcelainV2 ¶ added in v0.7.0
ParseStatusPorcelainV2 parses the output of
git status --ignored --porcelain=v2
func (*Status) MostlyEmpty ¶ added in v0.9.0
Empty returns true if s is empty - ignoring Ignored files.
type UnmergedStatus ¶ added in v0.7.0
type UnmergedStatus struct { X byte Y byte Sub string M1 int64 M2 int64 M3 int64 MW int64 H1 string H2 string H3 string Path string }
An UnmergedStatus is the status of an unmerged file.
type UntrackedStatus ¶ added in v0.7.0
type UntrackedStatus struct {
Path string
}
An UntrackedStatus is a status of an untracked file.
Click to show internal directories.
Click to hide internal directories.