Skip to content

Commit

Permalink
generate, Show git diff in case generate diff exists
Browse files Browse the repository at this point in the history
In case generate diff exists, show both the files
and the actual diff, it makes it easier and faster
to fix in case its a small change.

Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval committed Sep 5, 2021
1 parent ca42e2a commit 76570ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hack/verify-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ if [[ -n $(git status --porcelain 2>/dev/null) ]]; then
echo "ERROR: git tree state is not clean!"
echo "You probably need to run 'make generate' or 'make' and commit the changes"
git status
git diff
exit 1
fi

0 comments on commit 76570ee

Please sign in to comment.