SAN FRANCISCO _ Bruce Bochy tweaked a lineup that had produced no more than one run in 10 of the San Francisco Giants' first 21 games, and he got results on Monday night.
Buster Posey, moved from cleanup to the No. 3 spot, drove in the go-ahead run with a fifth-inning single and recent call-up Mac Williamson hit the Giants' longest home run of the season in a 4-2 win over the Washington Nationals to open a 10-game homestand.
"Sometimes if you change it up it helps get things going a little bit," Bochy said earlier.
Bochy dropped struggling leadoff hitter Austin Jackson to No. 7 in the lineup, moving up Andrew McCutchen, Posey and Evan Longoria one slot each from their usual 3-4-5.
McCutchen hit a two-out double to left in the fifth and scored when Posey lined a single through the right side of the infield to break a 1-1 tie.
Right-hander Chris Stratton delivered the latest in a series of strong outings, allowing just two runs and four hits over 6 2/3 innings to improve to 2-1 with a 2.32 earned run average. Stratton gave up two singles in the first, then just one more hit over the next five innings, a triple by Trea Turner, who subsequently scored on a sacrifice fly by Howie Kendrick.
Williamson gave Stratton some breathing room at 4-1 in the sixth inning when he blasted reliever Shawn Kelley's first pitch 464 feet to right-center field for a two-run homer. It was Williamson's second homer in four games since being promoted from Triple-A and the longest by a Giants hitter this season.
Jackson, who was batting just .208 with only one hit in his previous 15 at-bats, singled in the second inning but wound up 1-for-4 with a pair of strikeouts. Joe Panik hit leadoff, failing to get the ball out of the infield in four tries.