diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-09-15 13:13:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-15 13:13:44 -0400 |
| commit | 5953d54c14d9c5a46e0405c55393ff7aae71b414 (patch) | |
| tree | 764db2d8bcde270241af11db5be58912dbfa33d0 /git-hooks | |
| parent | bd1083f01d687ca6a7f8784233b9f42bba4eda27 (diff) | |
| parent | baee286190312e315b389fa5659e70fc630617a1 (diff) | |
Merge pull request #314 from inkstitch/lexelby/messages.po
auto-generate messages.po in cron job
Diffstat (limited to 'git-hooks')
| -rw-r--r-- | git-hooks/README.md | 1 | ||||
| -rwxr-xr-x | git-hooks/pre-commit | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/git-hooks/README.md b/git-hooks/README.md deleted file mode 100644 index 910f476a..00000000 --- a/git-hooks/README.md +++ /dev/null @@ -1 +0,0 @@ -Files in this directory are meant to be symlinked or copied into your local clone's .git/hooks directory. diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit deleted file mode 100755 index 99f59729..00000000 --- a/git-hooks/pre-commit +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -make messages.po > /dev/null 2>&1 - -# This monstrosity asks how many lines changed, but it ignores changes to the -# "POT-Creation-Date" line. In other words, if all that's changed is the -# "POT-Creation-Date", don't bother adding messages.po -lines_changed=$(git -c difftool.ignorepot.cmd='diff -u -I "POT-Creation-Date" "$LOCAL" "$REMOTE"' difftool -t ignorepot -y messages.po | wc -l) - -if [ "$lines_changed" = 0 ]; then - git checkout messages.po -else - git add messages.po -fi |
