Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Extract commit range into a variable
  • Loading branch information
AlexDaniel committed Jul 14, 2016
1 parent 18dd136 commit fb89156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions new-commits
Expand Up @@ -7,6 +7,7 @@ export RAKUDO_LOCATION="$WORKING_DIRECTORY/rakudo"
RAKUDO_ORIGIN='https://github.com/rakudo/rakudo.git'
BUILD_LOCK="$WORKING_DIRECTORY/lock"
PARALLEL_COUNT=7
COMMIT_RANGE='2015.10^..HEAD'

clean() {
while popd &> /dev/null; do :; done # change directory back
Expand All @@ -29,6 +30,5 @@ fi

git_orig=('git' '--git-dir' "$RAKUDO_LOCATION/.git" '--work-tree' "$RAKUDO_LOCATION")

# you can change 2015.12^..HEAD to something else
"${git_orig[@]}" log -z --pretty='%H' 2015.10^..HEAD \
"${git_orig[@]}" log -z --pretty='%H' "$COMMIT_RANGE" \
| xargs -0 -n 1 -P "$PARALLEL_COUNT" ./process-sha

0 comments on commit fb89156

Please sign in to comment.