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

Method allChangesFilesSince

ng-dev/utils/git/git-client.ts:200–208  ·  view source on GitHub ↗

Retrieve a list of all files in the repository changed since the provided shaOrRef.

(shaOrRef = 'HEAD')

Source from the content-addressed store, hash-verified

198
199 /** Retrieve a list of all files in the repository changed since the provided shaOrRef. */
200 allChangesFilesSince(shaOrRef = 'HEAD'): string[] {
201 assertValidGitRef(shaOrRef);
202 return Array.from(
203 new Set([
204 ...gitOutputAsArray(this.runGraceful(['diff', '--name-only', '--diff-filter=d', shaOrRef])),
205 ...gitOutputAsArray(this.runGraceful(['ls-files', '--others', '--exclude-standard'])),
206 ]),
207 );
208 }
209
210 /** Retrieve a list of all files currently staged in the repostitory. */
211 allStagedFiles(): string[] {

Callers 2

git-client.spec.tsFile · 0.80
handlerFunction · 0.80

Calls 3

runGracefulMethod · 0.95
assertValidGitRefFunction · 0.85
gitOutputAsArrayFunction · 0.85

Tested by

no test coverage detected