The veteran shortstop hit a tie-breaking home run in the eighth inning to send the Giants to their fifth loss in seven games since the All-Star break.