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>
This commit is contained in:
committed by
Junio C Hamano
parent
20fcffcc8d
commit
f412411245
@ -282,7 +282,8 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
|
||||
if (end_null)
|
||||
line_termination = '\0';
|
||||
update_refs_stdin();
|
||||
return update_refs(msg, updates, updates_count, DIE_ON_ERR);
|
||||
return update_refs(msg, updates, updates_count,
|
||||
UPDATE_REFS_DIE_ON_ERR);
|
||||
}
|
||||
|
||||
if (end_null)
|
||||
@ -314,5 +315,5 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
|
||||
return delete_ref(refname, oldval ? oldsha1 : NULL, flags);
|
||||
else
|
||||
return update_ref(msg, refname, sha1, oldval ? oldsha1 : NULL,
|
||||
flags, DIE_ON_ERR);
|
||||
flags, UPDATE_REFS_DIE_ON_ERR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user