include onlyChanged in command hash

This commit is contained in:
Simon Knott 2024-07-17 16:16:00 +02:00
parent ab05bbf9c8
commit 2251e6a6d2
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -107,6 +107,8 @@ function computeCommandHash(config: FullConfigInternal) {
command.cliGrep = config.cliGrep; command.cliGrep = config.cliGrep;
if (config.cliGrepInvert) if (config.cliGrepInvert)
command.cliGrepInvert = config.cliGrepInvert; command.cliGrepInvert = config.cliGrepInvert;
if (config.cliOnlyChanged)
command.cliOnlyChanged = config.cliOnlyChanged;
if (Object.keys(command).length) if (Object.keys(command).length)
parts.push(calculateSha1(JSON.stringify(command)).substring(0, 7)); parts.push(calculateSha1(JSON.stringify(command)).substring(0, 7));
return parts.join('-'); return parts.join('-');