Pablo Sandoval hit a two-run homer three pitches after another hard-hit ball fell about an inch foul of an RBI double, Tim Lincecum struck out a season-best eight batters and the San Francisco Giants beat the San Diego Padres 2-0 Saturday night.