convert logmsg_reencode to get_commit_buffer
[git/git.git] / builtin / reset.c
index b5312c4..6bd6245 100644 (file)
@@ -109,7 +109,7 @@ static void print_new_head_line(struct commit *commit)
        }
        else
                printf("\n");
        }
        else
                printf("\n");
-       logmsg_free(msg, commit);
+       unuse_commit_buffer(commit, msg);
 }
 
 static void update_index_from_diff(struct diff_queue_struct *q,
 }
 
 static void update_index_from_diff(struct diff_queue_struct *q,