mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
10 lines
259 B
Bash
Executable file
10 lines
259 B
Bash
Executable file
#!/bin/sh
|
|
|
|
old="$2"
|
|
new="$3"
|
|
|
|
# fail if we add any new lines to C or Scheme source containing a tab
|
|
git diff --name-only "$old" "$new" |\
|
|
egrep '\.(cpp|h|scm|sld|stub)$' |\
|
|
xargs -d'\n' git diff -U0 "$old" "$new" -- |\
|
|
grep -q $'^+.*\t' && exit 1
|