X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=blobdiff_plain;f=tg-patch.sh;h=7bafdfe1896a2181dd572f99ad2e81553b7df409;hp=f703a875fea699beda8ef672fa2c73cacdb9b83a;hb=7b523289a16c5ae66d36e3d10865594386a59c69;hpb=cfecc56816ac90c61fa9c4793220198d936d897d diff --git a/tg-patch.sh b/tg-patch.sh index f703a87..7bafdfe 100644 --- a/tg-patch.sh +++ b/tg-patch.sh @@ -57,7 +57,7 @@ git diff --name-only $diff_opts "$base_rev" ${diff_committed_only:+"$name"} -- | fgrep -vx ".topmsg" >"$git_is_stupid" || : # fgrep likes to fail randomly? if [ -s "$git_is_stupid" ]; then cd "$root_dir" - cat "$git_is_stupid" | xargs git diff --patch-with-stat $diff_opts "$base_rev" ${diff_committed_only:+"$name"} -- + cat "$git_is_stupid" | xargs git diff -a --patch-with-stat $diff_opts "$base_rev" ${diff_committed_only:+"$name"} -- else echo "No changes." fi