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=d701c5440705a609e833e10503f05441e61d1b1c;hb=8b0f1f9d215d767488542a7853320d1789838d92;hpb=d400bb3263ab1239cc219541bb4364135b1b753e diff --git a/tg-patch.sh b/tg-patch.sh index d701c54..7bafdfe 100644 --- a/tg-patch.sh +++ b/tg-patch.sh @@ -56,7 +56,8 @@ 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 - cat "$git_is_stupid" | xargs git diff --patch-with-stat $diff_opts "$base_rev" ${diff_committed_only:+"$name"} -- + cd "$root_dir" + cat "$git_is_stupid" | xargs git diff -a --patch-with-stat $diff_opts "$base_rev" ${diff_committed_only:+"$name"} -- else echo "No changes." fi