refs: simplify parsing of reflog entries
commit43bc3b6ceeb4cf3ed13741ffe02ed432e743fba5
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 21 Feb 2017 23:47:33 +0000 (21 23:47 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Feb 2017 18:12:15 +0000 (22 10:12 -0800)
treed493990872d05714404ac127a10ca63d2cca6d37
parent9461d27240c158cf781ce706a077663050179b14
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 <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c