pack-objects: factor out name_hash
commit68fb36eb92ff98ec81a066592a07b3f411450a1d
authorVicent Marti <tanoku@gmail.com>
Thu, 24 Oct 2013 18:01:29 +0000 (24 14:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Oct 2013 22:44:52 +0000 (24 15:44 -0700)
tree77bd96a2c222971d2e2846001bf73ed835bca8da
parent2834bc27c16e4ae103768dd6dda530f0e46116af
pack-objects: factor out name_hash

As the pack-objects system grows beyond the single
pack-objects.c file, more parts (like the soon-to-exist
bitmap code) will need to compute hashes for matching
deltas. Factor out name_hash to make it available to other
files.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
pack-objects.h