Skip to content

Commit

Permalink
Using --no-patch instead of --quiet
Browse files Browse the repository at this point in the history
Because --quiet would make the git diff
exits with 1 when it has differences, still
its not expected. Exit code none other than 0
is considered error.
  • Loading branch information
codesculpture authored and jackton1 committed Feb 17, 2024
1 parent 66b3b19 commit d4aadb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ export const canDiffCommits = async ({
} else {
const {exitCode, stderr} = await exec.getExecOutput(
'git',
['diff', '--quiet', sha1, sha2],
['diff', '--no-patch', sha1, sha2],
{
cwd,
ignoreReturnCode: true,
Expand Down

0 comments on commit d4aadb8

Please sign in to comment.