| 3110 | } |
| 3111 | |
| 3112 | int refs_rename_ref(struct ref_store *refs, const char *oldref, |
| 3113 | const char *newref, const char *logmsg) |
| 3114 | { |
| 3115 | char *msg; |
| 3116 | int retval; |
| 3117 | |
| 3118 | msg = normalize_reflog_message(logmsg); |
| 3119 | retval = refs->be->rename_ref(refs, oldref, newref, msg); |
| 3120 | free(msg); |
| 3121 | return retval; |
| 3122 | } |
| 3123 | |
| 3124 | int refs_copy_existing_ref(struct ref_store *refs, const char *oldref, |
| 3125 | const char *newref, const char *logmsg) |