Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 238baa9cbd
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.555 kb
# Run a command over a sequence of commits.
# Example:
# git test-once 'make clean && make compile && make test'
already_tested() {
git show-ref "refs/test/${ref_name}/${ref_name}-$hash" "$hash" > /dev/null && echo "Already passed $hash"
tested_on() {
git update-ref "refs/test/${ref_name}/${ref_name}-$hash" "$hash"
echo "Passed: $hash."
broke_on() {
echo "Broke on $v"
return 1
hash=`git rev-parse HEAD`
echo "Testing $1"
already_tested $hash || ( eval "$1" && tested_on $hash ) || broke_on $hash
Jump to Line
Something went wrong with that request. Please try again.