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

Use the_hash_algo when parsing instead of GIT_SHA1_HEXSZ so that this
function works with any size hash.  Rename the variable forty to
counter, as this is a better name and is independent of the hash size.

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