Skip to content

Commit

Permalink
OPS: fix copyright check
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-chacko committed May 31, 2024
1 parent c7ad5a6 commit 2632f0b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/check-copyright.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,9 @@ FAILED=$((FAILED + $(git diff --name-only --find-copies-harder --diff-filter=AM
# This is apparently due to metadata changes. Shrug.
# So check whether the contents have changed significantly.

# Define how to compare a file against its origin for significant content changes
isReallyDifferent() {
if git diff --ignore-all-space --quiet "$1" "$2" 2>/dev/null; then
echo "$2"
else
return 1;
fi
}
# Define how to compare a file against its origin for significant content changes.
# Succeed if there are differences, and print the filename.
isReallyDifferent() { ! git diff --ignore-all-space --quiet "$1" "$2" 2>/dev/null && echo "$2"; }

# Read status, source, and destination as separate records (lines).
# Check the status is R... or C... (otherwise it was parsed incorrectly).
Expand Down

0 comments on commit 2632f0b

Please sign in to comment.