debt-collector
Version:
a nodejs tool to identify, track and mesure technical debt
19 lines (18 loc) • 602 B
TypeScript
import type { Config, GitRevision } from '../types.js';
import { walkCommits } from './gitUtils.js';
type GitError = {
errorType: 'GIT_ERROR';
message: string;
};
type GitUtils = {
isGitReady: boolean;
currentBranch: string | null;
isHistoryDirty: boolean | null;
checkoutTo: (branch: string) => Promise<void> | null;
walkCommits: typeof walkCommits;
revList: GitRevision[] | null;
gitErrors: GitError[] | null;
execWalkCommand: (command: string) => Promise<string> | null;
};
declare const useGitUtils: (config: Config) => GitUtils;
export default useGitUtils;