How soon and how long Hanley Ramirez moves from third base to shortstop is not known, nor is his status batting fifth in the Dodgers lineup.

But if the early returns are any indication, whatever position he plays and whatever spot in the order he bats, the Dodgers will do whatever it takes to keep their newly acquired infielder playing a key role for the team for the foreseeable future.

Ramirez, who publicly expressed his wish to play in Los Angeles, endeared himself to teammates and Dodgers fans after hitting a decisive 10 th-inning homer Friday in L.A.'s 5-3 victory over the San Francisco Giants in front of 41,681 at AT&T Park.

Ramirez's two-run homer to left off Giants reliever Sergio Romo (3-2) broke a 3-3 tie in the top of the inning. Ramirez's homer followed a two-out walk to Andre Ethier.

"That ball was hit and our dugout erupted," Dodgers catcher A.J. Ellis said.

Dodgers closer Kenley Jansen survived a white-knuckle 10 th inning for his 20 th save.

"Just a breath of fresh air and new energy," Ellis said of what Ramirez has brought to the team, "just another lethal bat in our lineup to go along with Matt (Kemp) and (Andre Ethier)."