From: brian m. carlson Date: Tue, 21 Feb 2017 23:47:33 +0000 (+0000) Subject: refs: simplify parsing of reflog entries X-Git-Tag: v2.13.0-rc0~108^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/43bc3b6ceeb4cf3ed13741ffe02ed432e743fba5?ds=inline;hp=43bc3b6ceeb4cf3ed13741ffe02ed432e743fba5 refs: simplify parsing of reflog entries The current code for reflog entries uses a lot of hard-coded constants, making it hard to read and modify. Use parse_oid_hex and two temporary variables to simplify the code and reduce the use of magic constants. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano ---