diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-04-07 15:47:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-07 12:09:11 -0700 |
commit | f412411245d4329307dec8ac0b1860c791cdb212 (patch) | |
tree | 2f5b7a142c26a2f95d9f2c075873e1fd6bc71d7e /builtin/checkout.c | |
parent | 20fcffcc8de9fcfba15fce916ff38c98ca20323d (diff) | |
download | git-f412411245d4329307dec8ac0b1860c791cdb212.tar.gz |
refs.h: rename the action_on_err constants
Given that these constants are only being used when updating
references, it is inappropriate to give them such generic names as
"DIE_ON_ERR". So prefix their names with "UPDATE_REFS_".
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 1b86d9c868..6bf23188c9 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -624,7 +624,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.sha1, NULL, - REF_NODEREF, DIE_ON_ERR); + REF_NODEREF, UPDATE_REFS_DIE_ON_ERR); if (!opts->quiet) { if (old->path && advice_detached_head) detach_advice(new->name); |