From 20429c55d0d9d417cad479d8e8a926f0531e4bd4 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 12 Dec 2014 20:45:29 -0500 Subject: [PATCH] add changelog.sh to help the redactor of niteration Signed-off-by: Jean Privat --- src/changelog.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 src/changelog.sh diff --git a/src/changelog.sh b/src/changelog.sh new file mode 100755 index 0000000..754f545 --- /dev/null +++ b/src/changelog.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# This file is part of NIT ( http://www.nitlanguage.org ). +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This shell script is used to generate stats for the next niteration (news letter) + +orig_def=`git describe --abbrev=0` +cur_def=origin/master + +orig=${1-$orig_def} +cur=${2-$cur_def} + +echo "changelog: ${orig} .. ${cur}" +echo "shortstat" +git diff --shortstat "$orig".."$cur" +echo "PR" +git log --first-parent "$orig".."$cur" | grep 'Pull-Request: #' | wc -l +echo "shortlog" +git shortlog -ens "$orig".."$cur" +echo log +echo +git log --format="* %s [[!commit %h]]" --first-parent "$orig".."$cur" | tac -- 1.7.9.5