object: introduce get_object_hash macro.
commit3c4270107fec2c1d85b7b1a6f8b0aeebf3193b28
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 10 Nov 2015 02:22:26 +0000 (10 02:22 +0000)
committerJeff King <peff@peff.net>
Fri, 20 Nov 2015 13:02:05 +0000 (20 08:02 -0500)
tree84fb375dbe65874be0a31fe0475cb1cd9dc8d146
parent6f3d57b6e43d6c6f13c94371f16b79fcdece25bc
object: introduce get_object_hash macro.

This macro is a temporary change to ease the transition of struct object
to use struct object_id.  It takes an argument of struct object and
returns the object's hash.  Provide this hash next to struct object for
easier conversion.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Jeff King <peff@peff.net>
object.h