From: Martin von Zweigbergk Date: Sun, 6 Feb 2011 18:43:32 +0000 (-0500) Subject: rebase: read state outside loop X-Git-Tag: v1.7.10.4~1^2~11 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/10ffca7db2946b4392a38a8f114a0cb3fd6e069c?ds=inline;hp=10ffca7db2946b4392a38a8f114a0cb3fd6e069c rebase: read state outside loop The 'onto_name' state used in 'git rebase --merge' is currently read once for each commit that need to be applied. It doesn't change between each iteration, however, so it should be moved out of the loop. This also makes the code more readable. Also remove the unused variable 'end'. Signed-off-by: Martin von Zweigbergk Signed-off-by: Junio C Hamano ---