]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/get-tar-commit-id.c
get-tar-commit-id: parse comment record
authorRene Scharfe <l.s.r@web.de>
Tue, 19 Feb 2019 00:05:18 +0000 (00:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2019 02:57:39 +0000 (11:57 +0900)
commit3548726cd7f5c5d2d8a1359ac21ae0354bd4c895
tree871fd7d361c384a02437cbc9b66c3bec2ddc84a5
parent95399788d158e4628e25db20569d44af21a40906
get-tar-commit-id: parse comment record

Parse pax comment records properly and get rid of magic numbers for
acceptable comment length.  This simplifies a later change to handle
longer hashes.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/get-tar-commit-id.c