Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
3.6 kB · 92 lines
Go
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package org_tangled
// schema: org.tangled.git.defs
const ()
// GitDefs_ByteChanges is a "byteChanges" in the org.tangled.git.defs schema.type GitDefs_ByteChanges struct { Lhs int64 `json:"lhs" cborgen:"lhs"` Rhs int64 `json:"rhs" cborgen:"rhs"`}
// GitDefs_Commit is a "commit" in the org.tangled.git.defs schema.type GitDefs_Commit struct { Author *GitDefs_Signature `json:"author" cborgen:"author"` Committer *GitDefs_Signature `json:"committer" cborgen:"committer"` // hash: Commit Object ID Hash string `json:"hash" cborgen:"hash"` Message string `json:"message" cborgen:"message"` // tree: Tree Object ID Tree string `json:"tree" cborgen:"tree"`}
// GitDefs_DiffHunk is a "diffHunk" in the org.tangled.git.defs schema.type GitDefs_DiffHunk struct { Lines []*GitDefs_LinePair `json:"lines" cborgen:"lines"` // novelLhs: 0-based line numbers holding novel content on the left side NovelLhs []int64 `json:"novelLhs" cborgen:"novelLhs"` // novelRhs: 0-based line numbers holding novel content on the right side NovelRhs []int64 `json:"novelRhs" cborgen:"novelRhs"`}
// GitDefs_DiffSrc is a "diffSrc" in the org.tangled.git.defs schema.//// One side of a file diff.type GitDefs_DiffSrc struct { // content: Inlined content. Used on interdiff's LHS. Content *string `json:"content,omitempty" cborgen:"content,omitempty"` IsBinary bool `json:"isBinary" cborgen:"isBinary"` IsSubmodule bool `json:"isSubmodule" cborgen:"isSubmodule"` // oid: Blob oid, or the commit oid for a submodule Oid string `json:"oid" cborgen:"oid"` Path string `json:"path" cborgen:"path"` Size int64 `json:"size" cborgen:"size"`}
// GitDefs_DiffStat is a "diffStat" in the org.tangled.git.defs schema.type GitDefs_DiffStat struct { Deletions int64 `json:"deletions" cborgen:"deletions"` FilesChanged int64 `json:"filesChanged" cborgen:"filesChanged"` Insertions int64 `json:"insertions" cborgen:"insertions"`}
// GitDefs_FileDiff is a "fileDiff" in the org.tangled.git.defs schema.type GitDefs_FileDiff struct { // hasByteChanges: Byte count per side, present only when the two sides differ HasByteChanges *GitDefs_ByteChanges `json:"hasByteChanges,omitempty" cborgen:"hasByteChanges,omitempty"` HasSyntacticChanges bool `json:"hasSyntacticChanges" cborgen:"hasSyntacticChanges"` Hunks []*GitDefs_DiffHunk `json:"hunks" cborgen:"hunks"` LhsSrc *GitDefs_DiffSrc `json:"lhsSrc" cborgen:"lhsSrc"` RhsSrc *GitDefs_DiffSrc `json:"rhsSrc" cborgen:"rhsSrc"`}
// GitDefs_LinePair is a "linePair" in the org.tangled.git.defs schema.//// One aligned line pair; a side is absent when that side has no line.type GitDefs_LinePair struct { Lhs *int64 `json:"lhs,omitempty" cborgen:"lhs,omitempty"` Rhs *int64 `json:"rhs,omitempty" cborgen:"rhs,omitempty"`}
// GitDefs_Signature is a "signature" in the org.tangled.git.defs schema.type GitDefs_Signature struct { // email: Person email Email string `json:"email" cborgen:"email"` // name: Person name Name string `json:"name" cborgen:"name"` // when: Timestamp of the signature When string `json:"when" cborgen:"when"`}
// GitDefs_Submodule is a "submodule" in the org.tangled.git.defs schema.type GitDefs_Submodule struct { // branch: Branch to track in the submodule Branch *string `json:"branch,omitempty" cborgen:"branch,omitempty"` // name: Submodule name Name string `json:"name" cborgen:"name"` // url: Submodule repository URL Url string `json:"url" cborgen:"url"`}