Evan Longoria hit a three-run home run in the first inning, and four San Francisco pitchers combined on an eight-hitter Sunday afternoon as the Giants beat the visiting Los Angeles Dodgers 4-2 to win three of four in the weekend series. In a series lengthened to four games because of an earlier rainout that prompted a doubleheader on Saturday, the Giants won the final two games after the clubs had split eight previous head-to-head matchups in April. San Francisco wasted little time jumping on Dodgers starter Kenta Maeda (2-2) after the right-hander retired the first two Giants he faced.