Tim Lincecum pitched eight sharp innings in his longest start of the season and had an infield single with two outs in the sixth for the Giants' first baserunner against Anthony Bass as San Francisco beat the Padres 2-1 Saturday night.