copy_msg(): rename to copy_reflog_msg()

We will soon increase the visibility of this function, so make its name more distinctive. Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Jeff King <peff@peff.net>

David Turner committed Nov 10, 2015 at 12:42 UTC f4a5721ccb73efe33d345190f38058b45eaadca8
1 file changed +2 -2
refs.c
+2 -2
@@ -3287,7 +3287,7 @@ static int commit_ref(struct ref_lock *lock)
3287 * large, while cleaning up the whitespaces. Especially, convert LF to space,
3288 * because reflog file is one line per entry.
3289 */
3290 -static int copy_msg(char *buf, const char *msg)
3290 +static int copy_reflog_msg(char *buf, const char *msg)
3291 {
3292 char *cp = buf;
3293 char c;
@@ -3391,7 +3391,7 @@ static int log_ref_write_fd(int fd, const unsigned char *old_sha1,
3391 sha1_to_hex(new_sha1),
3392 committer);
3393 if (msglen)
3394 - len += copy_msg(logrec + len - 1, msg) - 1;
3394 + len += copy_reflog_msg(logrec + len - 1, msg) - 1;
3395
3396 written = len <= maxlen ? write_in_full(fd, logrec, len) : -1;
3397 free(logrec);