• Home
  • Raw
  • Download

Lines Matching +full:commit +full:- +full:message

9 #     http://www.apache.org/licenses/LICENSE-2.0
20 echo "Usage: $0 [--help] [--tolerant] [--travis]"
25 echo "$0: Check Signed-off-by message of the latest commit"
30 echo " --help print this help message"
31 echo " --tolerant check the existence of the message only but don't"
33 echo " of the commit"
34 echo " --travis perform check in tolerant mode if on Travis CI and not"
37 echo "The last line of every commit message must follow the form of:"
38 echo "'JerryScript-DCO-1.0-Signed-off-by: NAME EMAIL', where NAME and EMAIL must"
39 echo "match the name and email address of the author of the commit (unless in"
45 while [ "$#" -gt 0 ]
47 if [ "$1" == "--help" ]
51 elif [ "$1" == "--tolerant" ]
55 elif [ "$1" == "--travis" ]
59 echo -e "\e[1;33mWarning! Travis-tolerant mode requested but not running on Travis CI! \e[0m"
73 # Determining latest commit
74 parent_hashes=(`git show -s --format=%p HEAD | head -1`)
76 if [ "${#parent_hashes[@]}" -eq 1 ]
78 commit_hash=`git show -s --format=%h HEAD | head -1`
79 elif [ "${#parent_hashes[@]}" -eq 2 ]
83 echo "$0: cannot handle commit with ${#parent_hashes[@]} parents ${parent_hashes[@]}"
88 actual_signed_off_by_line=`git show -s --format=%B $commit_hash | sed '/^$/d' | tr -d '\015' | tail…
92 author_name=`git show -s --format=%an $commit_hash`
93 author_email=`git show -s --format=%ae $commit_hash`
94 required_signed_off_by_line="JerryScript-DCO-1.0-Signed-off-by: $author_name $author_email"
98 …echo -e "\e[1;33mSigned-off-by message is incorrect. The following line should be at the end of th…
102 …echo -e "\e[1;33mWarning! The name and email address of the author of the $commit_hash commit is n…
103 if echo "$actual_signed_off_by_line" | grep -q -v '^JerryScript-DCO-1.0-Signed-off-by:'
105 …echo -e "\e[1;33mSigned-off-by message is incorrect. The following line should be at the end of th…