~james/core

core/lexicons/git/defs.json -rw-r--r-- 3.1 KiB
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 16 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
93
94
95
96
97
98
{
  "lexicon": 1,
  "id": "sh.tangled.git.defs",
  "defs": {
    "signature": {
      "type": "object",
      "required": ["name", "email", "when"],
      "properties": {
        "name": {
          "type": "string",
          "description": "Person name"
        },
        "email": {
          "type": "string",
          "description": "Person email"
        },
        "when": {
          "type": "string",
          "format": "datetime",
          "description": "Timestamp of the signature"
        }
      }
    },
    "fileDiff": {
      "type": "object",
      "required": ["lhsSrc", "rhsSrc", "hunks", "hasSyntacticChanges"],
      "properties": {
        "lhsSrc": { "type": "ref", "ref": "#diffSrc" },
        "rhsSrc": { "type": "ref", "ref": "#diffSrc" },
        "hunks": { "type": "array", "items": { "type": "ref", "ref": "#diffHunk" } },
        "hasByteChanges": {
          "type": "ref",
          "ref": "#byteChanges",
          "description": "Byte count per side, present only when the two sides differ"
        },
        "hasSyntacticChanges": { "type": "boolean" }
      }
    },
    "diffSrc": {
      "type": "object",
      "description": "One side of a file diff.",
      "required": ["path", "oid", "size", "isBinary", "isSubmodule"],
      "properties": {
        "path": { "type": "string" },
        "oid": { "type": "string", "description": "Blob oid, or the commit oid for a submodule" },
        "size": { "type": "integer", "minimum": 0 },
        "isBinary": { "type": "boolean" },
        "isSubmodule": { "type": "boolean" },
        "content": {
          "type": "string",
          "description": "Inlined content. Used on interdiff's LHS."
        }
      }
    },
    "diffHunk": {
      "type": "object",
      "required": ["novelLhs", "novelRhs", "lines"],
      "properties": {
        "novelLhs": {
          "type": "array",
          "description": "0-based line numbers holding novel content on the left side",
          "items": { "type": "integer", "minimum": 0 }
        },
        "novelRhs": {
          "type": "array",
          "description": "0-based line numbers holding novel content on the right side",
          "items": { "type": "integer", "minimum": 0 }
        },
        "lines": { "type": "array", "items": { "type": "ref", "ref": "#linePair" } }
      }
    },
    "linePair": {
      "type": "object",
      "description": "One aligned line pair; a side is absent when that side has no line.",
      "properties": {
        "lhs": { "type": "integer", "minimum": 0 },
        "rhs": { "type": "integer", "minimum": 0 }
      }
    },
    "byteChanges": {
      "type": "object",
      "required": ["lhs", "rhs"],
      "properties": {
        "lhs": { "type": "integer", "minimum": 0 },
        "rhs": { "type": "integer", "minimum": 0 }
      }
    },
    "diffStat": {
      "type": "object",
      "required": ["insertions", "deletions", "filesChanged"],
      "properties": {
        "insertions": { "type": "integer", "minimum": 0 },
        "deletions": { "type": "integer", "minimum": 0 },
        "filesChanged": { "type": "integer", "minimum": 0 }
      }
    }
  }
}