From 9dc8c1ee86b296cf0c44aba278e8d16791fb4944 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Wed, 12 Dec 2012 16:12:24 +0200 Subject: [PATCH] FIX: gen-news.sh: Find the closest tagname Replaces the buggy tagname extraction with a proper one. Signed-off-by: Toni Gundogdu --- gen-news.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen-news.sh b/gen-news.sh index 0d16099..72ff806 100755 --- a/gen-news.sh +++ b/gen-news.sh @@ -26,10 +26,10 @@ IFS=$' a=`grep < ~/.gitconfig name | cut -f2 -d= | sed 's/^\s*//'` v=`./gen-ver.sh` d=`date +%F` -b="$v ($d) / $a +b="$v -- [$d, r:$a] " -t=`git tag | tail -n1` +t=`git describe --abbrev=0` for a in `git log --format='%an' "$t"..HEAD | sort | uniq`; do c=`git log --format=" - %s [%h]" --author="$a" "$t"..HEAD | sort -h` b="$b$a: -- 2.11.4.GIT