-
Notifications
You must be signed in to change notification settings - Fork 387
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
1 parent
65add5b
commit 4aa88c0
Showing
2 changed files
with
31 additions
and
1 deletion.
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,2 +1,16 @@ | ||
#!/usr/bin/env bash | ||
cargo xtask check --verbose | ||
set -ex | ||
|
||
tf=$(mktemp -t stash.XXX.$$) | ||
|
||
cleanup() { | ||
git apply --allow-empty --whitespace=nowarn < "$tf" && git stash drop -q | ||
rm "$tf" | ||
} | ||
|
||
git diff --full-index --binary > "$tf" | ||
git stash -q --keep-index | ||
|
||
trap cleanup EXIT | ||
|
||
cargo xtask check --verbose |
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,2 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
tf=$(mktemp -t stash.XXX.$$) | ||
|
||
cleanup() { | ||
git apply --allow-empty --whitespace=nowarn < "$tf" && git stash drop -q | ||
rm "$tf" | ||
} | ||
|
||
git diff --full-index --binary > "$tf" | ||
git stash -q --keep-index | ||
|
||
trap cleanup EXIT | ||
|
||
cargo xtask test --verbose | ||
|
||
|