See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| REMOTE=origin | |
| BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| BATCH_SIZE=10 | |
| # check if the branch exists on the remote | |
| # if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
| # # if so, only push the commits that are not on the remote already | |
| # range=$REMOTE/$BRANCH..HEAD | |
| # else | |
| # # else push all the commits | 
| on buildTitle(originalText) | |
| set normalizedText to my replace(originalText, ":", "-") | |
| set normalizedText to my replace(normalizedText, "|", "") | |
| set normalizedText to my replace(normalizedText, "{", "") | |
| set normalizedText to my replace(normalizedText, "}", "") | |
| set finalTitle to my firstChars(normalizedText, 30) | |
| return finalTitle | |
| end buildTitle | |
| on replace(originalText, fromText, toText) |