]> git.ipfire.org Git - thirdparty/git.git/commitdiff
cook.sh: compare the series title line as well
authorJunio C Hamano <gitster@pobox.com>
Tue, 8 Sep 2009 00:52:46 +0000 (17:52 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Sep 2009 00:52:46 +0000 (17:52 -0700)
cook.sh

diff --git a/cook.sh b/cook.sh
index ff7c134068ebb0384aeb852b8f274cfe93a4881d..328b515fdc853c5e92839a224fc5d8bb2f7126ee 100755 (executable)
--- a/cook.sh
+++ b/cook.sh
@@ -112,8 +112,8 @@ add_desc () {
 show_topic () {
        old=$1 new=$2
 
-       sed -n -e '/^ ..*/p' "$old" >"$tmp.old.nc"
-       sed -n -e '/^ ..*/p' "$new" >"$tmp.new.nc"
+       sed -n -e '/^ ..*/p' -e '/^\* /p' "$old" >"$tmp.old.nc"
+       sed -n -e '/^ ..*/p' -e '/^\* /p' "$new" >"$tmp.new.nc"
        if cmp "$tmp.old.nc" "$tmp.new.nc" >/dev/null
        then
                cat "$old"