X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tg-patch.sh;h=f703a875fea699beda8ef672fa2c73cacdb9b83a;hb=cfecc56816ac90c61fa9c4793220198d936d897d;hp=d701c5440705a609e833e10503f05441e61d1b1c;hpb=d400bb3263ab1239cc219541bb4364135b1b753e;p=topgit.git diff --git a/tg-patch.sh b/tg-patch.sh index d701c54..f703a87 100644 --- a/tg-patch.sh +++ b/tg-patch.sh @@ -56,6 +56,7 @@ git diff --name-only $diff_opts "$base_rev" ${diff_committed_only:+"$name"} -- | fgrep -vx ".topdeps" | 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"} -- else echo "No changes."