Receive the latest the-cove updates in your inbox

SAN DIEGO, CALIFORNIA - MAY 19: Brandon Crawford #35 of the San Francisco Giants is congratulated by Jeff Samardzija #29 after he hit a solo home run during the seventh inning of a baseball game against the San Diego Padres at PETCO Park on May 19, 2016 in San Diego, California. (Photo by Denis Poroy/Getty Images)

SAN DIEGO — Only one thing could stop the Giants on an eight-day trip through Phoenix and San Diego: The day off.

Other than Monday’s breather, the Giants went to sleep every night having pocketed a win. A 3-1 victory at Petco Park on Thursday night clinched a 7-0 trip, the first for the franchise since the 1913 team went 8-0 on a trip in the middle of the summer.

Following complete games by Madison Bumgarner and Johnny Cueto, Jeff Samardzija allowed just three hits and struck out eight in eight innings. He retired the final 19 hitters he faced and was pulled only because manager Bruce Bochy wanted to give the MLB leader in pitches thrown a breather. Samardzija threw 105 pitches, the final one a 96 mph fastball.

Buster Posey’s sacrifice fly gave Samardzija an early lead, and while he gave the run back in the top of the second, he did work around trouble to prevent further damage. Jon Jay hit a leadoff double in the first and was stranded. Alexi Amarista reached third with two down in the second but Samardzija struck out opposing pitcher James Shields.

SF Giants 2016 Season Highlights

An error — one of two outfield misplays by the Padres — helped the Giants jump ahead 2-1 in the fourth. Matt Kemp dropped Matt Duffy’s shallow fly to right, and Duffy alertly took second on the play. He scored three batters later on Hunter Pence’s single.

Shields pitched well, but the Giants tacked another run on in the seventh when Brandon Crawford parked a shot just over the wall in deep right. Samardzija breezed through the bottom of that frame, and by the end of the seventh he had retired 16 straight. After an easy eighth, his night was over.

Starting pitching report: Samardzija finished the night at 64 1/3 innings for the season, putting him third in the National League behind Clayton Kershaw and Johnny Cueto. Madison Bumgarner is tied for fifth. Yes, the Giants top three starters are all in the top five in the league in innings pitched. Bobby Evans is a happy man right now.