allow commit references to be null, e.g. for the first commit which has no parent

782f36fe3f384add5f56120611ccaf4dd6a01252

Tucker McKnight <tmcknight@instructure.com> | Tue Dec 02 2025

allow commit references to be null, e.g. for the first commit which has no parent
src/dataTypes.ts:8
Before
7
8
9
10
11
12
13
14
15
16
17
    head: string,
    fileList: Array<string>,
  }>,
  tags: Array<{
    name: string,
    sha: string,
    fileList: Array<string>,
  }>,
  commits: Map<string, {
    hash: string,
    message: string,
    author: string,
After
7
8
9
10
11
12
13
14
15
16
17
    head: string,
    fileList: Array<string>,
  }>,
  tags?: Array<{
    name: string,
    sha: string,
    fileList: Array<string>,
  }>,
  commits?: Map<string, {
    hash: string,
    message: string,
    author: string,
src/dataTypes.ts.orig:0
Before






























⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
After
-1
0
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
export type Repository = {
  name: string,
  description?: string,
  cloneUrl: string,
  defaultBranch: string,
  branches: Array<{
    name: string,
    head: string,
    fileList: Array<string>,
  }>,
  tags?: Array<{
    name: string,
    sha: string,
    fileList: Array<string>,
  }>,
<<<<<<< HEAD
  commits: Map<string, {
    hash: string,
=======
  commits?: Map<string, {
>>>>>>> 359136b (allow commit references to be null, e.g. for the first commit which has no parent)
    message: string,
    author: string,
    date: Date,
    parent: string | null,
    diffs: Array<{
      fileName: string,
      lineNumber: number,
      beforeText: string,
      afterText: string,
    }>
  }>,
}