Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# This script will run make xtest on any files in the repository that have not yet been committed | ||
# use before 'git commit' to ensure your commit doesn't require correction. | ||
|
||
export TEST_FILES=`git status --porcelain | grep ' M' | awk '{print $2}'` | ||
export TEST_FILES=`git status --porcelain | egrep '^( M|A)' | awk '{print $2}'` | ||
|
||
[ "$TEST_FILES" = "" ] && echo "nothing to test" | ||
[ "$TEST_FILES" != "" ] && make xtest | ||
[ "$TEST_FILES" != "" ] && echo $TEST_FILES && make xtest |