From: Lukas Fleischer Date: Tue, 3 Mar 2015 12:00:07 +0000 (+0100) Subject: Simplify commit and tag parsing X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/936295c4e4de8da83701c67377a911a0aefbcbd6?ds=inline;hp=936295c4e4de8da83701c67377a911a0aefbcbd6 Simplify commit and tag parsing * Use skip_prefix to avoid magic numbers in the code. * Use xcalloc() instead of xmalloc(), followed by manual initialization. * Split out line splitting. Signed-off-by: Lukas Fleischer ---