refactor: use same diff args as run-clang-format
This commit is contained in:
parent
ec125b761c
commit
1988c6876d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue