diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-09-13 05:38:29 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-09-13 05:38:29 +0200 |
commit | 1af5aecb965817901fa9134222bad4e0579de7a4 (patch) | |
tree | 1fc5ca4d9ae7504034aaf54abeb90c25cb68f21b /tests/online/push_util.h | |
parent | dc5b678fda918386f01630d2bc928edb546ac4f2 (diff) | |
download | libgit2-cmn/push-tests-inline-oid.tar.gz |
push: put the git_oid inline in the test structurecmn/push-tests-inline-oid
These are small pieces of data, so there is no advantage to allocating
them separately. Include the two ids inline in the struct we use to
check that the expected and actual ids match.
Diffstat (limited to 'tests/online/push_util.h')
-rw-r--r-- | tests/online/push_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/online/push_util.h b/tests/online/push_util.h index 822341bd2..570873cfe 100644 --- a/tests/online/push_util.h +++ b/tests/online/push_util.h @@ -16,8 +16,8 @@ extern const git_oid OID_ZERO; typedef struct { char *name; - git_oid *old_oid; - git_oid *new_oid; + git_oid old_oid; + git_oid new_oid; } updated_tip; typedef struct { |