Retrieve a list of all files tracked in the repository.
()
| 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; |
no test coverage detected