Right-hander Tim Hudson made his first start since breaking his ankle on July 24, pitching two no-hit innings, helping the San Francisco Giants beat the Arizona Diamondbacks 5-3 Sunday.

Hudson, who signed a two-year, $23 million free-agent contract over the winter, threw 27 pitches and struck out a batter. He also helped turn a first base-to-shortstop-to-pitcher double play to end the second. He broke his ankle covering first base while playing for the Atlanta Braves last season.

Left-hander Wade Miley pitched four innings and gave up a run on five hits with a walk and two strikeouts for the Diamondbacks.