The sheepshank can be used to shorten a rope, or to take the strain off of a damaged section. It needs to be kept under tension and is often described as unreliable. This is because if the knot isn’t kept taunt, it can undo.
Instructions for how to tie a Sheepshank can be found here: