diff: convert prep_temp_blob() to struct object_id
[gitweb.git] / combine-diff.c
index 3537209cd40c723e3234b8fa2009aed2d27e227a..5940dc87070c7e5f8aabbe920341fc5de1959c2c 100644 (file)
@@ -1269,7 +1269,7 @@ static struct diff_filepair *combined_pair(struct combine_diff_path *p,
                pair->one[i].path = p->path;
                pair->one[i].mode = p->parent[i].mode;
                oidcpy(&pair->one[i].oid, &p->parent[i].oid);
-               pair->one[i].sha1_valid = !is_null_oid(&p->parent[i].oid);
+               pair->one[i].oid_valid = !is_null_oid(&p->parent[i].oid);
                pair->one[i].has_more_entries = 1;
        }
        pair->one[num_parent - 1].has_more_entries = 0;
@@ -1277,7 +1277,7 @@ static struct diff_filepair *combined_pair(struct combine_diff_path *p,
        pair->two->path = p->path;
        pair->two->mode = p->mode;
        oidcpy(&pair->two->oid, &p->oid);
-       pair->two->sha1_valid = !is_null_oid(&p->oid);
+       pair->two->oid_valid = !is_null_oid(&p->oid);
        return pair;
 }