diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-10-16 00:06:55 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-16 04:05:50 +0200 |
commit | 0f2dc722dd01097d1e1c1dac43b2f57924594457 (patch) | |
tree | a8121caea164480b7dec0c9d069160d9797fc21d /builtin/am.c | |
parent | Convert check_connected to use struct object_id (diff) | |
download | git-0f2dc722dd01097d1e1c1dac43b2f57924594457.tar.xz git-0f2dc722dd01097d1e1c1dac43b2f57924594457.zip |
refs: convert resolve_refdup and refs_resolve_refdup to struct object_id
All of the callers already pass the hash member of struct object_id, so
update them to pass a pointer to the struct directly,
This transformation was done with an update to declaration and
definition and the following semantic patch:
@@
expression E1, E2, E3, E4;
@@
- resolve_refdup(E1, E2, E3.hash, E4)
+ resolve_refdup(E1, E2, &E3, E4)
@@
expression E1, E2, E3, E4;
@@
- resolve_refdup(E1, E2, E3->hash, E4)
+ resolve_refdup(E1, E2, E3, E4)
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/am.c')
-rw-r--r-- | builtin/am.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c index 32120f42df..c9bb14a6c2 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -2135,7 +2135,7 @@ static void am_abort(struct am_state *state) am_rerere_clear(); - curr_branch = resolve_refdup("HEAD", 0, curr_head.hash, NULL); + curr_branch = resolve_refdup("HEAD", 0, &curr_head, NULL); has_curr_head = curr_branch && !is_null_oid(&curr_head); if (!has_curr_head) hashcpy(curr_head.hash, EMPTY_TREE_SHA1_BIN); |