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

Function assertValidGitRef

ng-dev/utils/git/git-client.ts:267–271  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

265 allFiles(): string[] {
266 return gitOutputAsArray(this.runGraceful(['ls-files']));
267 }
268
269 /**
270 * Sanitizes the given console message. This method can be overridden by
271 * derived classes. e.g. to sanitize access tokens from Git commands.
272 */
273 sanitizeConsoleOutput(value: string) {
274 return value.replace(/(https?:\/\/)([^@:]+)(:[^@]+)?@/g, '$1<TOKEN>@');

Callers 3

hasCommitMethod · 0.85
checkoutMethod · 0.85
allChangesFilesSinceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected