]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/pull: make hash-size independent
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 19 Feb 2019 00:05:08 +0000 (00:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2019 02:57:38 +0000 (11:57 +0900)
commitfbfc089d913772f96f9562a3dbddaed28809fe72
tree688d0a9dd064f81d7a7d3074b4e5b9d99c6e78e9
parent24dd363ed586f5edbdea96689d4e0e40a7d3f7fa
builtin/pull: make hash-size independent

Instead of using get_oid_hex and GIT_SHA1_HEXSZ, use parse_oid_hex to
avoid the need for a constant and simplify the code.

Additionally, fix some comments to refer to object IDs instead of SHA-1
and update a constant used to provide an allocation hint.

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