wt-status: convert struct wt_status to object_id
Change struct wt_status to use struct object_id instead of an array of unsigned char. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
8d4d86b0f0
commit
e0cb7cdb89
@ -510,7 +510,7 @@ static int run_status(FILE *fp, const char *index_file, const char *prefix, int
|
||||
s->nowarn = nowarn;
|
||||
s->is_initial = get_oid(s->reference, &oid) ? 1 : 0;
|
||||
if (!s->is_initial)
|
||||
hashcpy(s->sha1_commit, oid.hash);
|
||||
oidcpy(&s->oid_commit, &oid);
|
||||
s->status_format = status_format;
|
||||
s->ignore_submodule_arg = ignore_submodule_arg;
|
||||
|
||||
@ -1406,7 +1406,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
|
||||
|
||||
s.is_initial = get_oid(s.reference, &oid) ? 1 : 0;
|
||||
if (!s.is_initial)
|
||||
hashcpy(s.sha1_commit, oid.hash);
|
||||
oidcpy(&s.oid_commit, &oid);
|
||||
|
||||
s.ignore_submodule_arg = ignore_submodule_arg;
|
||||
s.status_format = status_format;
|
||||
|
Reference in New Issue
Block a user