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

782f36fe3f384add5f56120611ccaf4dd6a01252

Tucker McKnight | 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
8
9
  tags: Array<{
  commits: Map<string, {
After
8
9
  tags?: Array<{
  commits?: Map<string, {
src/dataTypes.ts.orig:0
Before
0
After
0
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,
    }>
  }>,
}