3 # https://lists.mindrot.org/pipermail/openssh-unix-dev/2022-March/040086.html
6 url=https://github.com/openssh/openssh-portable.git
10 out=$package-git.patch
13 # use filterdiff, etc to exclude bad chunks from diff
18 if [ ! -d $repo ]; then
19 git clone --bare $url -b $branch $repo
23 git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag
24 git log -p --reverse $tag..$branch ":(exclude)doc/doc-*" ":(exclude)test" ":(exclude).*" | filter > ../$out.tmp
27 if cmp -s $out{,.tmp}; then
28 echo >&2 "No new diffs..."