mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-03-20 09:01:05 +08:00
# Description of Changes * Small cleanups in `tools/check-diff.sh` * Use `tools/check-diff.sh` wherever appropriate * Simplify the `sdks/csharp/tools~/gen-*.sh` files after the repo merge # API and ABI breaking changes None. # Expected complexity level and risk 1 # Testing - [x] CI still passes Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
13 lines
493 B
Bash
Executable File
13 lines
493 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Keep in mind that this is also used from the private repo.
|
|
|
|
SUBDIR="${1:-.}" # Default to '.' (the whole repo) if no argument given
|
|
|
|
# We have a comment in every generated file that has the version and git hash, so these would change with every commit.
|
|
# We ignore them to avoid having to regen files for every commit unrelated to code gen.
|
|
|
|
PATTERN='^// This was generated using spacetimedb cli version.*'
|
|
|
|
git diff --exit-code --ignore-matching-lines="$PATTERN" -- "$SUBDIR"
|