diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-10-15 22:06:51 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-16 02:05:50 (GMT) |
commit | ae077771b09fac4d663e3f8c039318a97eb3a15b (patch) | |
tree | 53b4ed92e41aad737b49a44fc60871f7df1445dc /builtin/checkout.c | |
parent | 2616a5e5089814188a583572bd9bf578b18a2a40 (diff) | |
download | git-ae077771b09fac4d663e3f8c039318a97eb3a15b.zip git-ae077771b09fac4d663e3f8c039318a97eb3a15b.tar.gz git-ae077771b09fac4d663e3f8c039318a97eb3a15b.tar.bz2 |
refs: convert update_ref and refs_update_ref to use struct object_id
Convert update_ref, refs_update_ref, and write_pseudoref to use struct
object_id. Update the existing callers as well. Remove update_ref_oid,
as it is no longer needed.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r-- | builtin/checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c index fc4f8fd..2bb009e 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -664,7 +664,7 @@ static void update_refs_for_switch(const struct checkout_opts *opts, if (!strcmp(new->name, "HEAD") && !new->path && !opts->force_detach) { /* Nothing to do. */ } else if (opts->force_detach || !new->path) { /* No longer on any branch. */ - update_ref(msg.buf, "HEAD", new->commit->object.oid.hash, NULL, + update_ref(msg.buf, "HEAD", &new->commit->object.oid, NULL, REF_NODEREF, UPDATE_REFS_DIE_ON_ERR); if (!opts->quiet) { if (old->path && |