]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/mktree: remove hard-coded constant
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 15 Oct 2018 00:01:51 +0000 (00:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Oct 2018 03:53:15 +0000 (12:53 +0900)
commit58ce21b819e582db2a96d170fdd24d3f7bc6c4d0
tree9b09c4fe4b90da7dad55c56c78690018eb24e185
parent2f0c9e9a9bbe8015da2c0838f3051c0a336dee26
builtin/mktree: remove hard-coded constant

Instead of using a hard-coded constant for the size of a hex object ID,
switch to use the computed pointer from parse_oid_hex that points after
the parsed object ID.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mktree.c