Version of easy-connect with the u-blox cellular platforms C027 and C030 added.
esp8266-driver/.git/hooks/commit-msg.sample@0:19aa55d66228, 2017-08-10 (annotated)
- Committer:
- group-ublox
- Date:
- Thu Aug 10 14:33:05 2017 +0000
- Revision:
- 0:19aa55d66228
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
group-ublox | 0:19aa55d66228 | 1 | #!/bin/sh |
group-ublox | 0:19aa55d66228 | 2 | # |
group-ublox | 0:19aa55d66228 | 3 | # An example hook script to check the commit log message. |
group-ublox | 0:19aa55d66228 | 4 | # Called by "git commit" with one argument, the name of the file |
group-ublox | 0:19aa55d66228 | 5 | # that has the commit message. The hook should exit with non-zero |
group-ublox | 0:19aa55d66228 | 6 | # status after issuing an appropriate message if it wants to stop the |
group-ublox | 0:19aa55d66228 | 7 | # commit. The hook is allowed to edit the commit message file. |
group-ublox | 0:19aa55d66228 | 8 | # |
group-ublox | 0:19aa55d66228 | 9 | # To enable this hook, rename this file to "commit-msg". |
group-ublox | 0:19aa55d66228 | 10 | |
group-ublox | 0:19aa55d66228 | 11 | # Uncomment the below to add a Signed-off-by line to the message. |
group-ublox | 0:19aa55d66228 | 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg |
group-ublox | 0:19aa55d66228 | 13 | # hook is more suited to it. |
group-ublox | 0:19aa55d66228 | 14 | # |
group-ublox | 0:19aa55d66228 | 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') |
group-ublox | 0:19aa55d66228 | 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" |
group-ublox | 0:19aa55d66228 | 17 | |
group-ublox | 0:19aa55d66228 | 18 | # This example catches duplicate Signed-off-by lines. |
group-ublox | 0:19aa55d66228 | 19 | |
group-ublox | 0:19aa55d66228 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | |
group-ublox | 0:19aa55d66228 | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { |
group-ublox | 0:19aa55d66228 | 22 | echo >&2 Duplicate Signed-off-by lines. |
group-ublox | 0:19aa55d66228 | 23 | exit 1 |
group-ublox | 0:19aa55d66228 | 24 | } |