Skip to content

Commit

Permalink
Add prettier on git-diff command
Browse files Browse the repository at this point in the history
Quite frequently, we face the situation that deployed code does not match with the local because of different spaces or line lengths.

But it's not important, because it's not affecting logic
  • Loading branch information
kyzia551 authored Nov 7, 2023
1 parent adcb7b4 commit 51827d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ test :; forge test -vvv
download :; cast etherscan-source --chain ${chain} -d src/etherscan/${chain}_${address} ${address}
git-diff :
@mkdir -p diffs
@npx prettier ${before} ${after} --write
@printf '%s\n%s\n%s\n' "\`\`\`diff" "$$(git diff --no-index --diff-algorithm=patience --ignore-space-at-eol ${before} ${after})" "\`\`\`" > diffs/${out}.md

0 comments on commit 51827d6

Please sign in to comment.