Brandon Crawford (not seen) is mobbed by teammates after his homer in the 10th inning. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 1 of 15 - Brandon Crawford hits walk-off home run

Brandon Crawford (not seen) is mobbed by teammates after his homer in the 10th inning. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Brandon Crawford (not seen) is mobbed by teammates after his homer in...the 10th inning. The San Francisco Giants defeated the Colorado...Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 2 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Brandon Crawford (35) is mobbed by teammates after his game winning homer in the tenth inning. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 2 of 15 - Brandon Crawford hits walk-off home run

Brandon Crawford (35) is mobbed by teammates after his game winning homer in the tenth inning. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Brandon Crawford (35) is mobbed by teammates after his game winning...homer in the tenth inning. The San Francisco Giants defeated the...Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T...park.

Image 3 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Brandon Crawford slugged a game winning home run in the bottom of the tenth inning to win the game. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 3 of 15 - Brandon Crawford hits walk-off home run

Brandon Crawford slugged a game winning home run in the bottom of the tenth inning to win the game. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Brandon Crawford slugged a game winning home run in the bottom of the...tenth inning to win the game. The San Francisco Giants defeated the...Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T...park.

Image 4 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Brandon Crawford passed third base after hitting a game winning homer. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 4 of 15 - Brandon Crawford hits walk-off home run

Brandon Crawford passed third base after hitting a game winning homer. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Brandon Crawford passed third base after hitting a game winning homer....The San Francisco Giants defeated the Colorado Rockies 5-4 in ten...innings Sunday April 13, 2014 at AT&T park.

Image 5 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Fans erupted after Brandon Crawford delivered the game winning homer. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 5 of 15 - Brandon Crawford hits walk-off home run

Fans erupted after Brandon Crawford delivered the game winning homer. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Michael Morse (right) and Brandon Hicks (14) arrived at home plate after a hit by Angel Pagan in the fifth inning. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 6 of 15 - Brandon Crawford hits walk-off home run

Michael Morse (right) and Brandon Hicks (14) arrived at home plate after a hit by Angel Pagan in the fifth inning. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Michael Morse (right) and Brandon Hicks (14) arrived at home plate...after a hit by Angel Pagan in the fifth inning. The San Francisco...Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April...13, 2014 at AT&T park.

Image 7 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Brandon Crawford tagged out D.J. LeMahieu to end the tenth inning with a double play. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 7 of 15 - Brandon Crawford hits walk-off home run

Brandon Crawford tagged out D.J. LeMahieu to end the tenth inning with a double play. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Brandon Crawford tagged out D.J. LeMahieu to end the tenth inning with...a double play. The San Francisco Giants defeated the Colorado Rockies...5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 8 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Sergio Romo reacted to a double play which ended the tenth inning. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 8 of 15 - Brandon Crawford hits walk-off home run

Sergio Romo reacted to a double play which ended the tenth inning. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Sergio Romo reacted to a double play which ended the tenth inning. The...San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings...Sunday April 13, 2014 at AT&T park.

Image 9 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Pablo Sandoval was congratulated in the dugout after his home run. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 9 of 15 - Brandon Crawford hits walk-off home run

Pablo Sandoval was congratulated in the dugout after his home run. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Pablo Sandoval was congratulated in the dugout after his home run. The...San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings...Sunday April 13, 2014 at AT&T park.

Image 10 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Pitcher Tim Hudson looked back as he walked off the field with a narrow lead. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 10 of 15 - Brandon Crawford hits walk-off home run

Pitcher Tim Hudson looked back as he walked off the field with a narrow lead. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Pitcher Tim Hudson looked back as he walked off the field with a...narrow lead. The San Francisco Giants defeated the Colorado Rockies...5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 11 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Gregor Blanco heads for home plate but is tagged out trying to win the game with an inside the park homer. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 11 of 15 - Brandon Crawford hits walk-off home run

Gregor Blanco heads for home plate but is tagged out trying to win the game with an inside the park homer. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Gregor Blanco heads for home plate but is tagged out trying to win the...game with an inside the park homer. The San Francisco Giants defeated...the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T...park.

Image 12 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Brandon Crawford is mobbed by teammates after his home run. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Image 12 of 15 - Brandon Crawford hits walk-off home run

Brandon Crawford is mobbed by teammates after his home run. The San Francisco Giants defeated the Colorado Rockies 5-4 in ten innings Sunday April 13, 2014 at AT&T park.

Brandon Crawford is mobbed by teammates after his home run. The San...Francisco Giants defeated the Colorado Rockies 5-4 in ten innings...Sunday April 13, 2014 at AT&T park.

Image 13 of 15|Brandon Crawford hits walk-off home run

The Chronicle

Angel Pagan from the San Francisco Giants salutes the crowd when he gets on first base during ninth inning of the game with the Colorado Rockies in San Francisco, Calif. on April 13, 2014.

Image 13 of 15 - Brandon Crawford hits walk-off home run

Angel Pagan from the San Francisco Giants salutes the crowd when he gets on first base during ninth inning of the game with the Colorado Rockies in San Francisco, Calif. on April 13, 2014.

Angel Pagan from the San Francisco Giants salutes the crowd when he...gets on first base during ninth inning of the game with the Colorado...Rockies in San Francisco, Calif. on April 13, 2014.

Image 14 of 15|Brandon Crawford hits walk-off home run

The Chronicle

San Francisco Giants players celebrate following a 5-4 win with the Colorado Rockies in San Francisco, Calif. on April 13, 2014.

Image 14 of 15 - Brandon Crawford hits walk-off home run

San Francisco Giants players celebrate following a 5-4 win with the Colorado Rockies in San Francisco, Calif. on April 13, 2014.

San Francisco Giants players celebrate following a 5-4 win with the...Colorado Rockies in San Francisco, Calif. on April 13, 2014.

Image 15 of 15|Brandon Crawford hits walk-off home run

The Chronicle

San Francisco Giants players celebrate following a 5-4 win with the Colorado Rockies in San Francisco, Calif. on April 13, 2014.

Image 15 of 15 - Brandon Crawford hits walk-off home run

San Francisco Giants players celebrate following a 5-4 win with the Colorado Rockies in San Francisco, Calif. on April 13, 2014.

San Francisco Giants players celebrate following a 5-4 win with the...Colorado Rockies in San Francisco, Calif. on April 13, 2014.

History came within a whisper of repeating itself at AT&T Park on Sunday.

Last year, the Giants beat Colorado on Angel Pagan’s walkoff inside-the-park home run. This year, Gregor Blanco attempted a 360-foot dash with two outs in the ninth, only to be thwarted by two great throws.

So the game went into the 10th inning and the Giants walked off in a more traditional way. Brandon Crawford, who has hit lefties exceptionally thus far, homered to Rex Brothers’ second pitch to give the Giants a 5-4 win and a series victory against the Rockies.

Crawford picked the perfect time for his first homer of the year, a high drive just inside the right-field foul pole that reached McCovey Cove.

Blanco had entered for Michael Morse in the seventh inning and batted with two outs in the ninth, the score tied 4-4, facing righty Adam Ottavino. He hit a shot off the bricks in right-center that caromed away from right fielder Michael Cuddyer.

Blanco had a triple for sure. When Cuddyer briefly bobbled the ball, third-base coach Tim Flannery windmilled Blanco around third. Blanco leaped head first, but catcher Wilin Rosario tagged him, in a very sensitive area, after two perfect throws from Cuddyer and second baseman D.J. LeMahieu.

Blanco has not hit an inside-the-park home run and makes no bones about wanting one. Alas, had he been safe the scoring likely would have been triple plus error.

Tim Hudson failed to hold a 4-1 lead created by a suddenly slumping Giants offense and got his first no-decision after the Rockies scored twice in the eighth to tie the game 4-4.

Hudson carried a 4-2 lead into the eighth inning, the two runs coming from two-out solo homers by Rosario and Justin Morneau. Hudson’s pitch count through seven innings was 77, so a complete game seemed possible.

But the bottom of Colorado’s order knocked him out of the game. Nolan Arenado and LeMahieu doubled on consecutive pitches to trim the Giants’ lead to 4-3. After Brandon Barnes bunted the runner to third, Hudson was done.

Manager Bruce Bochy summoned lefty Javier Lopez to face Charlie Blackmon. Rockies manager Walt Weiss countered with a right-handed hitter, Drew Stubbs, who built the count to 3-1 before shooting the tying single to left.

Bochy penned his normal lineup against right-handed pitchers with no thought of dropping .152-hitting Pablo Sandoval out of the third spot.

“The thing you want to do is stay consistent,” Bochy said. “You don’t want these guys thinking anytime they have a skid they’re going to be moved.”

Sandoval rewarded his manager’s faith with two hits, including a sixth-inning homer against Tyler Chatwood.

The Giants landed in an offensive pit in the series. They went 17 innings without a run before they reached Chatwood for three in the fifth in a rally that began with a painful birthday gift for Hunter Pence.

Chatwood drilled him in the shoulder.

Michael Morse ripped a single off the left-field wall. Pence went to third and scored on a sacrifice fly by Crawford, the only Giant besides Madison Bumgarner with an RBI over the first 22 innings of the series.

Brandon Hicks’ second hit and a wild pitch put two in scoring position for Angel Pagan, who snapped an 0-for-8 – the only dent to his season – by lining a two-run single over second baseman D.J. LeMahieu’s glove.