[WIP] add ahead/behind commit count for branches. Something is currently broken here.

e0741812ba2deb68e548d35f48b78c5dc1ede665

Tucker McKnight <tmcknight@instructure.com> | Mon Jan 19 2026

[WIP] add ahead/behind commit count for branches. Something is currently broken here.
main.ts:317
Before
316
317
318

319
320

  // FILE.TS
  const flatFilesData = flatFiles(reposData)
⁣
  eleventyConfig.addTemplate(
    'repos/file.11ty.js',
    htmlPage(reposConfiguration, eleventyConfig, fileJsTemplate),
After
316
317
318
319
320
321

  // FILE.TS
  const flatFilesData = flatFiles(reposData)
  console.log(flatFilesData.filter(entry => entry.file.includes('njk')))
  eleventyConfig.addTemplate(
    'repos/file.11ty.js',
    htmlPage(reposConfiguration, eleventyConfig, fileJsTemplate),
src/repos.ts:117
Before
After
src/vcses/git/operations.ts:9
Before
8
9
10



11
12

  const result = await exec(command)
  let files = result.stdout.split("\n").filter(item => item.length > 0 && item != ".")
⁣
⁣
⁣
  // TODO: this could be better. This is adding each sub-path of a file to a set, so that
  // we don't wind up with repeats, and then converting that back into an array. E.g. if
  // we have two files:
After
8
9
10
11
12
13
14
15

  const result = await exec(command)
  let files = result.stdout.split("\n").filter(item => item.length > 0 && item != ".")
  if (branchName === 'main') {
    console.log(files)
  }
  // TODO: this could be better. This is adding each sub-path of a file to a set, so that
  // we don't wind up with repeats, and then converting that back into an array. E.g. if
  // we have two files:
tsconfig.json:6
Before
5
6
7
8
9
10
    "noImplicitAny": false,
    "module": "node18",
    "target": "es6",
    "lib": ["es2023", "dom"],
    "allowJs": true,
    "outDir": "dist"
  },
After
5
6
7
8
9
10
    "noImplicitAny": false,
    "module": "node18",
    "target": "es6",
    "lib": ["esnext", "dom"],
    "allowJs": true,
    "outDir": "dist"
  },