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