Commit 9d28024
committed
pre-commit-no-snapshots.sh: improve SNAPSHOT check
The check now examines only the staged diff rather than the entire
working copy. So if you add a SNAPSHOT reference locally for development
purposes, but are not actually committing it, the commit will not fail.
Thanks to Barry DeZonia for the suggestion.1 parent 438fcda commit 9d28024
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
0 commit comments