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 02:31:08 +0100 |
commit | 91774afcc30c7e8ffdf7b3e587d52c340684364f (patch) | |
tree | 633fbecffd7621fd229c49e01c6feef1c57301f9 /builtin/am.c | |
parent | refs: tidy up and adjust visibility of the `ref_update` flags (diff) | |
download | git-91774afcc30c7e8ffdf7b3e587d52c340684364f.tar.xz git-91774afcc30c7e8ffdf7b3e587d52c340684364f.zip |
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/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 c9bb14a6c2..894290e2d3 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -2151,7 +2151,7 @@ static void am_abort(struct am_state *state) has_curr_head ? &curr_head : NULL, 0, UPDATE_REFS_DIE_ON_ERR); else if (curr_branch) - delete_ref(NULL, curr_branch, NULL, REF_NODEREF); + delete_ref(NULL, curr_branch, NULL, REF_NO_DEREF); free(curr_branch); am_destroy(state); |