San Francisco, CA (Sports Network) - Yusmeiro Petit had never thrown a shutout, let alone a complete game in the majors. On Friday, he was one out away from becoming the 24th pitcher to throw a perfect game in MLB history.

Petit (3-0) had retired the first 26 Arizona batters he faced before Eric Chavez stepped to the plate as a pinch-hitter.

After working the count full, Chavez smacked a fastball into right field that a sliding Hunter Pence trapped for the only Diamondbacks' hit of the game.

Petit didn't let it faze him, though, as he got A.J. Pollock to ground out to third to end the game and finish off the San Francisco Giants' 3-0 victory over Arizona.