Branch

commit first line goes here

Tue Dec 02 2025

Tucker McKnight <tmcknight@instructure.com>

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

782f36fe3f384add5f56120611ccaf4dd6a01252

Side-by-side
Stacked
src/dataTypes.ts:8
Before
8 9
  tags: Array<{
  commits: Map<string, {
After
8 9
  tags?: Array<{
  commits?: Map<string, {
src/dataTypes.ts.orig:0
Before
0
After
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 31 32
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,
    }>
  }>,
}