So it has been awhile since I last contributed somehow so here we go. Since mage's pets aren't immune to taunt this macro helps you to save trinkets for more lethal situations. This guide also works for warriors but you'd have to change stances, haven't looked into this one and since I dont play warrior I haven't been able to research macro similar to this. Also, this macro is best used as soon as you see yourself getting sheeped since the breaking effect isn't instant and requires enemy pet to get you as a target and cast frost or waterbolt on you.
#showtooltip Righteous Defence
/cast [noharm,help] Righteous Defense
/stopmacro [harm] [noexists]
/cast Righteous Defense
So what this does is it casts Righteous defence on the player you're currently targetting and makes every non-player attacking your teammate attack you which naturally brakes your sheep. You can also attach a heal to that macro something like.
#showtooltip Word Of Glory
/cast Word Of Glory
/cast [noharm,help] Righteous Defense
/stopmacro [harm] [noexists]
/cast Righteous Defense