mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: use same diff args as run-clang-format
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user