Skip to content

Commit f4a5721

Browse files
dturner-twpeff
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]> Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent d336123 commit f4a5721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

refs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3287,7 +3287,7 @@ static int commit_ref(struct ref_lock *lock)
32873287
* large, while cleaning up the whitespaces. Especially, convert LF to space,
32883288
* because reflog file is one line per entry.
32893289
*/
3290-
static int copy_msg(char *buf, const char *msg)
3290+
static int copy_reflog_msg(char *buf, const char *msg)
32913291
{
32923292
char *cp = buf;
32933293
char c;
@@ -3391,7 +3391,7 @@ static int log_ref_write_fd(int fd, const unsigned char *old_sha1,
33913391
sha1_to_hex(new_sha1),
33923392
committer);
33933393
if (msglen)
3394-
len += copy_msg(logrec + len - 1, msg) - 1;
3394+
len += copy_reflog_msg(logrec + len - 1, msg) - 1;
33953395

33963396
written = len <= maxlen ? write_in_full(fd, logrec, len) : -1;
33973397
free(logrec);

0 commit comments

Comments
 (0)