Branch

commit first line goes here

Mon Nov 17 2025

Tucker McKnight <tucker@pangolin.lan>

remove the generic operations class, just go with git operations

8eaecc836900be5206cd8a1fb9e9db43c799112f

Side-by-side
Stacked
main.ts:7
Before
7
import repoOperations from './src/vcses/operations.ts'
After
7
import * as operations from './src/vcses/git/operations.ts'
main.ts:181
Before
181 182
    const config = reposConfiguration.repos[repo]
    return repoOperations[config._type].getFileLastTouchInfo(branch, filename, location)
After
181
    return operations.getFileLastTouchInfo(branch, filename, location)
src/vcses/operations.ts:1
Before
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import {
  getFileList as getGitFileList,
  getFileLastTouchInfo as getGitFileLastTouchInfo,
} from './git/operations.ts'

type RepoOperationsType = {
  [vcs: string]: {
    getFileList: (repoName: string, branchName: string, repoLocation: string) => Promise<Array<string>>,
    getFileLastTouchInfo: (branchName: string, filename: string, repoLocation: string) => Promise<Array<{sha: string, author: string}>>,
  }
}

const repoOperations: RepoOperationsType = {
  git: {
    getFileList: getGitFileList,
    getFileLastTouchInfo: getGitFileLastTouchInfo,
  },
}

export default repoOperations
After
1