Concise and stereoselective synthesis of enamides and dienamides by a titanium-mediated coupling method.