MCPcopy Create free account
hub / github.com/angular/dev-infra / getG3SyncFileMatchFns

Method getG3SyncFileMatchFns

ng-dev/utils/g3.ts:117–136  ·  view source on GitHub ↗
(
    git: AuthenticatedGitClient,
    configs: {caretaker: CaretakerConfig; github: GithubConfig},
  )

Source from the content-addressed store, hash-verified

115 }
116
117 static async getG3SyncFileMatchFns(
118 git: AuthenticatedGitClient,
119 configs: {caretaker: CaretakerConfig; github: GithubConfig},
120 ): Promise<null | {
121 ngMatchFn: SyncFileMatchFn;
122 separateMatchFn: SyncFileMatchFn;
123 }> {
124 debugger;
125 if (configs.caretaker.g3SyncConfigPath === undefined) {
126 Log.debug('No Google Sync configuration specified.');
127 return null;
128 }
129
130 const configPath = path.join(git.baseDir, configs.caretaker.g3SyncConfigPath);
131 const {ngMatchFn, separateMatchFn, config} = await getGoogleSyncConfig(configPath);
132 if (config.syncedFilePatterns.length === 0) {
133 Log.warn('Google Sync configuration does not specify any files being synced.');
134 }
135 return {ngMatchFn, separateMatchFn};
136 }
137
138 static getLatestShas(git: AuthenticatedGitClient) {
139 /** The latest sha for the g3 branch. */

Callers 1

retrieveDiffStatsMethod · 0.95

Calls 1

getGoogleSyncConfigFunction · 0.85

Tested by

no test coverage detected