From: Junio C Hamano Date: Wed, 21 Jan 2009 08:37:38 +0000 (-0800) Subject: Simplify parsing branch switching events in reflog X-Git-Tag: v1.6.2-rc0~70^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d7c03c1ff98be1d22dd18b70669ffc6fb76b39b3?ds=inline;hp=d7c03c1ff98be1d22dd18b70669ffc6fb76b39b3 Simplify parsing branch switching events in reflog We only accept "checkout: moving from A to B" newer style reflog entries, in order to pick up A. There is no point computing where B begins at after running strstr to locate " to ", nor adding 4 and then subtracting 4 from the same pointer. Signed-off-by: Junio C Hamano ---