X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tg-patch.sh;fp=tg-patch.sh;h=48f4d770059bc7e7cb99bd8b005ad1ae1aeb932e;hb=a93c254df082ee5b1c6599e0ff045a6e1e203665;hp=04023c05234d938d10acfb112a77554e7c0425f8;hpb=1ec1593458af509437008522be51cbe15c309d45;p=topgit.git diff --git a/tg-patch.sh b/tg-patch.sh index 04023c0..48f4d77 100644 --- a/tg-patch.sh +++ b/tg-patch.sh @@ -29,7 +29,7 @@ echo [ -n "$(git grep '^[-]--' "$name" -- ".topmsg")" ] || echo '---' # Evil obnoxious hack to work around the lack of git diff --exclude -git_is_stupid="$(mktemp)" +git_is_stupid="$(mktemp -t tg-patch-changes.XXXXXX)" git diff-tree --name-only "$base_rev" "$name" | fgrep -vx ".topdeps" | fgrep -vx ".topmsg" >"$git_is_stupid" || : # fgrep likes to fail randomly?