From 5fe14092eb5386a04c164a86c1e344be07b9a482 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Fri, 17 May 2013 10:10:50 +0000 Subject: [PATCH] Add script to generate a list of changes in html format between two revisions based on git log This is the equivalent of svnlog2ul.sh which does the same from svn log git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22983 57a11ea4-9604-0410-9ed3-97b8803252fd --- util/gitlog2ul.sh | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 util/gitlog2ul.sh diff --git a/util/gitlog2ul.sh b/util/gitlog2ul.sh new file mode 100755 index 0000000000..ea8680318c --- /dev/null +++ b/util/gitlog2ul.sh @@ -0,0 +1,55 @@ +#! /bin/bash +# +# gitlog2ul.sh +# +# This script will extract all the commit messages from the git +# repository between two releases or from a previous release and the +# current checkout's HEAD. +# The result will be printed on standard out as a +# html unordered list ("bulleted list"). +# +# Parameters: +# +# : the git tag for the release to start +# the commit message search +# : the git tag for the release to end +# the commit message search +# +# The search will return all commit messages between +# and +# +# Examples: +# This will compile the changes between two tagged releases: +# gitlog2ul.sh 2.3.7 2.3.8 +# This will compile the changes between the tagged release and the +# current HEAD in checked out working copy: +# gitlog2ul.sh 2.4.7 + +oldrelease=$1 +newrelease=$2 + +dir=`dirname "$0"` + +# Print basic headers (to match what svn2log generates) +cat < + + + + + + +
    +EOF + +if [ "x$2" == "x" ] +then + newrelease=HEAD +fi + +git --no-pager log --format="
  • %s%n
    %b
  • " $oldrelease..$newrelease | egrep -v "git-svn-id|^(
    )?BP$|^$" + +cat < + +EOF