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

Method allFiles

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

Retrieve a list of all files tracked in the repository.

()

Source from the content-addressed store, hash-verified

216 // We also need to refresh the index in case some files have been touched
217 // but not modified. The diff-index command will not check contents so we
218 // manually need to refresh and cleanup the index before performing the diff.
219 // Relevant info: https://git-scm.com/docs/git-diff-index#_non_cached_mode,
220 // https://git-scm.com/docs/git-update-index and https://stackoverflow.com/a/34808299.
221 this.runGraceful(['update-index', '-q', '--refresh']);
222
223 return this.runGraceful(['diff-index', '--quiet', 'HEAD']).status !== 0;

Callers 2

verifyFunction · 0.80
handlerFunction · 0.80

Calls 2

runGracefulMethod · 0.95
gitOutputAsArrayFunction · 0.85

Tested by

no test coverage detected