t/t2025-worktree-add.sh: use the $( ... ) construct for command substitution
[gitweb.git] / object.h
index 7c098d031e1be90f64053e9238f4bc417b597b5d..f8b644263ff7e3b244bc1804b8527f87f7dbcf84 100644 (file)
--- a/object.h
+++ b/object.h
@@ -49,11 +49,9 @@ struct object {
        unsigned used : 1;
        unsigned type : TYPE_BITS;
        unsigned flags : FLAG_BITS;
-       unsigned char sha1[20];
+       struct object_id oid;
 };
 
-#define get_object_hash(x) ((x).sha1)
-
 extern const char *typename(unsigned int type);
 extern int type_from_string_gently(const char *str, ssize_t, int gentle);
 #define type_from_string(str) type_from_string_gently(str, -1, 0)