diff options
author | Karel Kočí <cynerd@email.cz> | 2017-10-05 23:37:03 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-10-05 23:38:36 +0200 |
commit | e79776c14c86e37f89087504f765638f2c20eb96 (patch) | |
tree | 3f8ff371c7ecf8b3f3a0eb509ce269c180476b77 /local | |
parent | 3bf384e3ee04e3a82cfb65a73b11cce9f0320519 (diff) | |
parent | 2fc8d93ef509f583f6977588c7b3fb2cf8ebd332 (diff) | |
download | myconfigs-e79776c14c86e37f89087504f765638f2c20eb96.tar.gz myconfigs-e79776c14c86e37f89087504f765638f2c20eb96.tar.bz2 myconfigs-e79776c14c86e37f89087504f765638f2c20eb96.zip |
Merge branch 'master' into server
Diffstat (limited to 'local')
-rwxr-xr-x | local/bin/project-test | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/local/bin/project-test b/local/bin/project-test deleted file mode 100755 index a0591d8..0000000 --- a/local/bin/project-test +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# Executes given command on all commits from current one to given one. -set -e - -print_help() { - echo "Executes given command for each commit. In default it executes" - echo "for 10 previous commands." - echo - echo "Usage: project-test [OPTION...] [--] COMMAND" - echo " -r,--ref [REF]" - echo " Git reference to go to" - echo " -c,--count [COUNT]" - echo " Tests given count of references back from current one." -} - -while [ -n "$1" ]; do - case $1 in - -r|--ref) - shift - REF=$1 - ;; - -c|--count) - shift - REF=HEAD~$1 - ;; - --) - shift - break - ;; - *) - break - ;; - esac - shift -done - -[ -n "$REF" ] || REF=HEAD~10 - -while read -r rev; do - git checkout "$rev" - git submodule update - eval $@ -done < <(git rev-list "$REF"..HEAD) |