]> granicus.if.org Git - cgit/commit
Simplify commit and tag parsing
authorLukas Fleischer <cgit@cryptocrack.de>
Tue, 3 Mar 2015 12:00:07 +0000 (13:00 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 3 Mar 2015 15:47:30 +0000 (16:47 +0100)
commit936295c4e4de8da83701c67377a911a0aefbcbd6
tree8a7d0f56bc0faaca7f68eab0037bb2bb7dd4579c
parent911d574250d3a2ae97f282fb8f466db2afa1cd64
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 <cgit@cryptocrack.de>
parsing.c