]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/difftool: use parse_oid_hex
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 19 Feb 2019 00:05:22 +0000 (00:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2019 02:57:39 +0000 (11:57 +0900)
commitebe4df59c45ea95ce51fd8fede2a08d9009e990f
treeb7bd4ffa0399b6574c045cd406d3b84d55ad2804
parentb8d45d035536b5635929d281f1b4aae004d8891b
builtin/difftool: use parse_oid_hex

Instead of using get_oid_hex and adding constants to the result, use
parse_oid_hex to make this code independent of the hash size.

Additionally, correct a typo that would cause us to print one too few
characters on error, since we will already have incremented the pointer
to point to the beginning of the object ID before we get to printing the
error message.

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