commit c4e12a883ce36af19facd44f759c26b2bf004795 from: Stefan Sperling date: Mon May 13 21:52:58 2019 UTC rename got_commitable's 'base_id' to 'base_blob_id'; more obvious commit - eb029fd68eacaa2cf729eca77b32255b9c842522 commit + c4e12a883ce36af19facd44f759c26b2bf004795 blob - 7103aa2afce020c27d8adc980b95aaa232035522 blob + adefc19ed9aa346fb05e9f3d7cac365ef7050780 --- include/got_worktree.h +++ include/got_worktree.h @@ -36,7 +36,7 @@ struct got_commitable { char *ondisk_path; unsigned char status; struct got_object_id *blob_id; - struct got_object_id *base_id; + struct got_object_id *base_blob_id; mode_t mode; }; blob - d2ab48df22bc1599be297b1d41e5f7d98447d094 blob + 262e110032ea0b8b1a87740b342ae3439d8ec90b --- lib/worktree.c +++ lib/worktree.c @@ -2232,7 +2232,7 @@ free_commitable(struct got_commitable *ct) free(ct->in_repo_path); free(ct->ondisk_path); free(ct->blob_id); - free(ct->base_id); + free(ct->base_blob_id); free(ct); } @@ -2305,8 +2305,8 @@ collect_commitables(void *arg, unsigned char status, c ct->status = status; ct->blob_id = NULL; /* will be filled in when blob gets created */ if (ct->status != GOT_STATUS_ADD) { - ct->base_id = got_object_id_dup(id); - if (ct->base_id == NULL) { + ct->base_blob_id = got_object_id_dup(id); + if (ct->base_blob_id == NULL) { err = got_error_from_errno("got_object_id_dup"); goto done; } @@ -2521,7 +2521,7 @@ match_deleted_or_modified_ct(struct got_commitable **c ct->status != GOT_STATUS_DELETE) continue; - if (got_object_id_cmp(ct->base_id, te->id) != 0) + if (got_object_id_cmp(ct->base_blob_id, te->id) != 0) continue; err = match_ct_parent_path(&path_matches, ct, base_tree_path); @@ -2799,7 +2799,7 @@ check_ct_out_of_date(struct got_commitable *ct, struct id_in_head = NULL; } - if (id_in_head && got_object_id_cmp(id_in_head, ct->base_id) != 0) + if (id_in_head && got_object_id_cmp(id_in_head, ct->base_blob_id) != 0) err = got_error(GOT_ERR_COMMIT_OUT_OF_DATE); free(id_in_head);