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
#!/bin/bash | |
HASHES=$(git rev-list master) | |
HASHES=($HASHES) | |
for HASH in "${HASHES[@]}" | |
do | |
STATS=($(git diff-tree --minimal --shortstat -w HEAD $HASH)) | |
echo "$HASH => ${STATS[0]} files changed, $((${STATS[3]}+${STATS[5]})) lines changed (+${STATS[3]}/-${STATS[5]})" | |
done |
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
#!/bin/bash | |
# This script automatically sets the version and short version string of | |
# an Xcode project from the Git repository containing the project. | |
# | |
# To use this script in Xcode, add the script's path to a "Run Script" build | |
# phase for your application target. | |
set -o errexit | |
set -o nounset |