Gravel pit capture explained

What happens when the river gets diverted.