Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStatus ¶
Types ¶
type DiffData ¶
type DiffData struct {
FileA string `json:"fileA"`
FileB string `json:"fileB"`
Diffs bool `json:"diffs"`
HeaderA *git.IndexHeader `json:"headerA,omitempty"`
HeaderB *git.IndexHeader `json:"headerB,omitempty"`
EntryDiffs []EntryDiff `json:"entry_diffs,omitempty"`
EntryNotInA []Entry `json:"entry_not_in_a,omitempty"`
EntryNotInB []Entry `json:"entry_not_in_b,omitempty"`
TreeDiffs []TreeDiff `json:"tree_diffs,omitempty"`
TreeNotInA []*git.CacheTreeEntry `json:"tree_not_in_a,omitempty"`
TreeNotInB []*git.CacheTreeEntry `json:"tree_not_in_b,omitempty"`
}
func DiffIndexes ¶
type Entry ¶
type Entry struct {
Mode uint32 `json:"mode"`
FileSize uint32 `json:"filesize"`
SHA1 git.IndexSha1 `json:"sha1"`
Flags uint16 `json:"flags"`
Name string `json:"name"`
}
Remove items not used for compare
type Index ¶
type Index struct {
Header git.IndexHeader
IndexMap map[string]Entry
TreeMap map[string]*git.CacheTreeEntry
}
Index structure for easier lookup and adding paths to tree items
type TreeDiff ¶
type TreeDiff struct {
A *git.CacheTreeEntry `json:"treeA"`
B *git.CacheTreeEntry `json:"treeB"`
}
Click to show internal directories.
Click to hide internal directories.