Versions in this module Expand all Collapse all v0 v0.1.0 Nov 6, 2023 Changes in this version + var DiffContext = 3 + var LogPageSize = 20 + type Blob struct + Hash string + Lines []BlobLine + Size int64 + type BlobData struct + Blob Blob + Commit Commit + type BlobLine struct + Content string + Number int + type Chunk struct + Content string + Type Operation + type Commit struct + Author string + Committer string + Hash Hash + Message string + ParentHashes []Hash + Time time.Time + func (c Commit) HasParents() bool + type CommitData struct + Commit Commit + Diffstat string + FilePatches []FilePatch + Repo Repo + Revision string + type DiffData struct + Diffstat string + FilePatches []FilePatch + From string + Repo Repo + To string + type FileMode uint8 + const Dir + const Empty + const Executable + const File + const Submodule + const Symlink + func (f FileMode) String() string + type FilePatch struct + Chunks []Chunk + File string + IsBinary bool + func (fp FilePatch) Info() ([]PatchInfo, error) + func (fp FilePatch) String() string + type Hash string + func (h Hash) Short() string + type IndexData struct + Repos []*Repo + type LogData struct + Commits []Commit + FromHash Hash + NextPage Hash + Repo Repo + Revision string + func (l LogData) HasNext() bool + type Operation int + const Add + const Delete + const Equal + type PatchInfo struct + Content string + Left string + Operation Operation + Right string + type PathElem struct + Base string + Path string + Repo string + Revision string + type Reference struct + Name string + Time time.Time + type RefsData struct + Branches []Reference + Repo Repo + Tags []Reference + type Repo struct + Description string + LastModified time.Time + Owner string + Slug string + type RequestData struct + Path string + Repo Repo + Revision string + func (r RequestData) PathBase() string + func (r RequestData) PathElems() []PathElem + type Tree struct + Entries []TreeEntry + Hash Hash + type TreeData struct + Commit Commit + Readme string + Tree Tree + func (t TreeData) HasReadme() bool + func (t TreeData) IsEmpty() bool + type TreeEntry struct + Hash Hash + Href string + Mode FileMode + Name string