]> git.ipfire.org Git - thirdparty/git.git/commit - pkt-line.c
pkt-line: extract set_packet_header()
authorLars Schneider <larsxschneider@gmail.com>
Sun, 16 Oct 2016 23:20:30 +0000 (16:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2016 18:36:50 +0000 (11:36 -0700)
commit2f60bdd1a83f14ceee75da309974b0401fa5b019
tree7e6eb100101fea5e97112c78738633196a8a952f
parent81c634e94f2fef0cec295f7554080c82bd6aeeb7
pkt-line: extract set_packet_header()

Extracted set_packet_header() function converts an integer to a 4 byte
hex string. Make this function locally available so that other pkt-line
functions could use it.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pkt-line.c