PITTSBURGH -- Jean Machi has no idea who Elroy Face is, but he might come to learn about the former Pittsburgh Pirates relief pitcher who is still well remembered by baseball historians for going 18-1 in 1959.

Pitching against Face's old team Monday night, Machi used his arm, his bat and his legs to help the Giants eke out a 5-hour, 29-minute, 11-10 victory in 13 innings over the Pirates at PNC Park and extend the club's torrid winning run to six straight and 10 of 11.

In the process, the 32-year-old journeyman reliever from Venezuela also upped his own record to 5-0, which tied him for the major league lead in wins. Earlier this week, joking with reporters about his fast start, Machi mused that if he got four wins a month, he could actually win 24 games this year and blow away that Face mark.

Regardless of where it all winds up at the end of September, Machi has become an invaluable member of the Giants bullpen. He has a 0.53 ERA to go with that 5-0 record, and his latest performance was his best yet.

Machi not only pitched scoreless relief in the 11th and 12th after the Giants tied the score at 10-all in the ninth but also was the key man in the winning rally in the top of the 13th.

With Pittsburgh's seventh pitcher, Jared Hughes, on the mound, Hunter Pence reached on a one-out walk, and outfielder Juan Perez was hit by a pitch. Long out of position players to come off the bench, manager Bruce Bochy sent Machi up to bunt.

The rotund reliever not only dropped a beauty, he flashed surprising speed chugging up the line, and second baseman Neil Walker, covering first, couldn't handle Hughes' slightly errant throw. Machi got the first sacrifice of his career, and Pence scored easily when Walker couldn't retrieve the ball in time.

"I think the pitcher was a little bit slow reacting to go get the ball," said Machi through interpreter Erwin Higueros. "So when I saw that, I used all the speed that I had. We got there almost at the same time, the ball and me."

Bochy said if there had been two outs, he was preparing to send Tuesday's scheduled starter, Tim Hudson, up to pinch-hit. But with one out, Bochy thought Machi had a chance to get a bunt down, even though he hadn't practiced it since spring training.

"He's a good athlete, and he can swing the bat a little, he can bunt," said Bochy. "He also runs well. Looks are deceiving in this case, but he made it look easy. It was a perfect bunt, and I think the speed helped rush the throw."

Sergio Romo, the Giants' seventh pitcher, came on to preserve the victory with his 10th save in 10 chances working through the heart of the Pittsburgh order.

It was a wild game in many ways. Instead of the homer-hitting, stingy-pitching outfit that subdued Atlanta over the weekend in tidy fashion, the Giants had 20 hits without a homer. And despite a messy pitching night -- over the first seven innings, anyway -- they also showed clutch hitting -- they rallied from an 8-2 deficit by getting a season-high eight hits with men in scoring position after not having a single one during the Atlanta series.

The pitching staff gave up twice as many runs as it did over the previous five games, but the bullpen locked in once the Giants tied the score in the ninth on Buster Posey's third hit of the night, an RBI single that scored Pence.

Preceding Machi, Santiago Casilla pitched two scoreless innings that concluded with an epic 14-pitch battle with Walker and the potential winning run on third base. Walker fouled off eight straight pitches at 2-2, but after throwing a ball to get to 3-2, Casilla threw a fastball away to finally strike him out.

"What a game," said Bochy. "It looked like we were dead in the water there. It's one of the grittiest games I've been involved in with this group. We've had some good comebacks, but this is one of the best ones -- you travel, you get here and get down six runs, but they found a way to get it done."

The Giants scored five runs on six hits in the top of the sixth, Brandon Hicks delivering the biggest blow with a two-run double. The Pirates answered with a run in the bottom of the sixth, but an RBI double by Michael Morse and a run-scoring single by Hector Sanchez tied the score in the top of the seventh.

Sanchez, to be sure, earned his salary and then some in this game. Beset by flu-like symptoms, he nonetheless caught all 13 innings and tied his career high with four hits.

"I'm ready for tomorrow," Sanchez said, laughing. "We battled and fought and got the victory."

Tuesday's game
Giants (Tim Hudson 4-1) at Pittsburgh (Charlie Morton 0-4), 4:05 p.m. CSNBA