Diamondback Energy said it will buy Endeavor Energy - the largest privately held oil and gas producer in the Permian Basin (pictured).