refactor: use same diff args as run-clang-format

This commit is contained in:
Charles Kerr 2018-09-19 08:40:57 -05:00
parent ec125b761c
commit 1988c6876d

View file

@ -98,7 +98,7 @@ function parseCommandLine () {
}
async function findChangedFiles (top) {
const result = await GitProcess.exec(['diff', 'HEAD', '--name-only'], top)
const result = await GitProcess.exec(['diff', '--name-only', '--cached'], top)
if (result.exitCode !== 0) {
console.log('Failed to find changed files', GitProcess.parseError(result.stderr))
process.exit(1)