object: convert parse_object* to take struct object_id
[gitweb.git] / pretty.c
index d0f86f5d85cab6c470871cdd6e5ead526259bf6a..c4a0ace34cd5b576b181f398bf3342bb468866fc 100644 (file)
--- a/pretty.c
+++ b/pretty.c
@@ -1137,7 +1137,7 @@ static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
 
        /* these depend on the commit */
        if (!commit->object.parsed)
-               parse_object(commit->object.oid.hash);
+               parse_object(&commit->object.oid);
 
        switch (placeholder[0]) {
        case 'H':               /* commit hash */