0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/util/git/pristine.ts
2023-11-07 15:50:29 +00:00

11 lines
281 B
TypeScript

import { getCache } from '../cache/repository';
export function getCachedPristineResult(branchName: string): boolean {
const cache = getCache();
const branch = cache.branches?.find(
(branch) => branch.branchName === branchName,
);
return branch?.pristine ?? false;
}