diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-11-05 09:42:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-06 10:31:08 +0900 |
commit | 91774afcc30c7e8ffdf7b3e587d52c340684364f (patch) | |
tree | 633fbecffd7621fd229c49e01c6feef1c57301f9 /builtin/checkout.c | |
parent | 5ac95fee3d6f77867a627a713f9aa72dc32be18f (diff) | |
download | git-91774afcc30c7e8ffdf7b3e587d52c340684364f.tar.gz |
refs: rename constant `REF_NODEREF` to `REF_NO_DEREF`
Even after working with this code for years, I still see this constant
name as "ref node ref". Rename it to make it's meaning clearer.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
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 463a337e5d..114028ee01 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -665,7 +665,7 @@ static void update_refs_for_switch(const struct checkout_opts *opts, /* Nothing to do. */ } else if (opts->force_detach || !new->path) { /* No longer on any branch. */ update_ref(msg.buf, "HEAD", &new->commit->object.oid, NULL, - REF_NODEREF, UPDATE_REFS_DIE_ON_ERR); + REF_NO_DEREF, UPDATE_REFS_DIE_ON_ERR); if (!opts->quiet) { if (old->path && advice_detached_head && !opts->force_detach) |