wifi test

Dependencies:   X_NUCLEO_IKS01A2 mbed-http

Committer:
JMF
Date:
Wed Sep 05 14:28:24 2018 +0000
Revision:
0:24d3eb812fd4
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JMF 0:24d3eb812fd4 1 #!/bin/sh
JMF 0:24d3eb812fd4 2 #
JMF 0:24d3eb812fd4 3 # An example hook script to prepare the commit log message.
JMF 0:24d3eb812fd4 4 # Called by "git commit" with the name of the file that has the
JMF 0:24d3eb812fd4 5 # commit message, followed by the description of the commit
JMF 0:24d3eb812fd4 6 # message's source. The hook's purpose is to edit the commit
JMF 0:24d3eb812fd4 7 # message file. If the hook fails with a non-zero status,
JMF 0:24d3eb812fd4 8 # the commit is aborted.
JMF 0:24d3eb812fd4 9 #
JMF 0:24d3eb812fd4 10 # To enable this hook, rename this file to "prepare-commit-msg".
JMF 0:24d3eb812fd4 11
JMF 0:24d3eb812fd4 12 # This hook includes three examples. The first comments out the
JMF 0:24d3eb812fd4 13 # "Conflicts:" part of a merge commit.
JMF 0:24d3eb812fd4 14 #
JMF 0:24d3eb812fd4 15 # The second includes the output of "git diff --name-status -r"
JMF 0:24d3eb812fd4 16 # into the message, just before the "git status" output. It is
JMF 0:24d3eb812fd4 17 # commented because it doesn't cope with --amend or with squashed
JMF 0:24d3eb812fd4 18 # commits.
JMF 0:24d3eb812fd4 19 #
JMF 0:24d3eb812fd4 20 # The third example adds a Signed-off-by line to the message, that can
JMF 0:24d3eb812fd4 21 # still be edited. This is rarely a good idea.
JMF 0:24d3eb812fd4 22
JMF 0:24d3eb812fd4 23 case "$2,$3" in
JMF 0:24d3eb812fd4 24 merge,)
JMF 0:24d3eb812fd4 25 /usr/bin/perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;;
JMF 0:24d3eb812fd4 26
JMF 0:24d3eb812fd4 27 # ,|template,)
JMF 0:24d3eb812fd4 28 # /usr/bin/perl -i.bak -pe '
JMF 0:24d3eb812fd4 29 # print "\n" . `git diff --cached --name-status -r`
JMF 0:24d3eb812fd4 30 # if /^#/ && $first++ == 0' "$1" ;;
JMF 0:24d3eb812fd4 31
JMF 0:24d3eb812fd4 32 *) ;;
JMF 0:24d3eb812fd4 33 esac
JMF 0:24d3eb812fd4 34
JMF 0:24d3eb812fd4 35 # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
JMF 0:24d3eb812fd4 36 # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"