svn=svn://svn.lighttpd.net/lighttpd
url=https://git.lighttpd.net/lighttpd/lighttpd1.4.git
package=lighttpd
-tag=lighttpd-1.4.40
-branch=personal/gstrauss/master
+tag=lighttpd-1.4.45
+branch=master
out=$package-branch.diff
repo=$package.git
set -$d
# Excluding files which change version or were not in dist tarball
filterdiff -p1 \
+ -x '.gitignore' \
-x 'CMakeLists.txt' \
- -x 'configure.ac' \
-x 'SConstruct' \
+ -x 'configure.ac' \
-x 'packdist.sh' \
| cat
}
fi
cd $repo
- git fetch
- git diff $tag..$branch | filter > ../$out.tmp
+ git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag
+ git log -p --reverse $tag..$branch | filter > ../$out.tmp
cd ..
+if ! test -s $out.tmp; then
+ echo >&2 "No diffs..."
+ rm -f $out.tmp
+ exit 0
+fi
+
if cmp -s $out{,.tmp}; then
echo >&2 "No new diffs..."
rm -f $out.tmp