X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tg-patch.sh;fp=tg-patch.sh;h=68efcf0850e815ee3f55edb347684364d41b9a4b;hb=52cbcb78ed100ce2d7ac28d98f6694a77a6a1235;hp=7bafdfe1896a2181dd572f99ad2e81553b7df409;hpb=2670b3333351c8f15bceabdbf6b3bbc17a25dd0e;p=topgit.git diff --git a/tg-patch.sh b/tg-patch.sh index 7bafdfe..68efcf0 100644 --- a/tg-patch.sh +++ b/tg-patch.sh @@ -51,7 +51,7 @@ echo [ -n "$(git grep $diff_opts '^[-]--' ${diff_committed_only:+"$name"} -- ".topmsg")" ] || echo '---' # Evil obnoxious hack to work around the lack of git diff --exclude -git_is_stupid="$(mktemp -t tg-patch-changes.XXXXXX)" +git_is_stupid="$(get_temp tg-patch-changes)" 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? @@ -61,7 +61,6 @@ if [ -s "$git_is_stupid" ]; then else echo "No changes." fi -rm "$git_is_stupid" echo '-- ' echo "tg: ($base_rev..) $name (depends on: $(cat_file "$topic:.topdeps" | paste -s -d' '))"