~james/core

core/api/org_tangled/gitdefs.go -rw-r--r-- 3.5 KiB
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 14 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// 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"`
}