i18n: difftool: mark warnings for translation
[gitweb.git] / commit.c
index fc3d6fb2c372a7f668ed41c94a9abb8e4ebd18ee..ba6dee37aa36cc7141649deda6407012cd0f2724 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -1580,9 +1580,8 @@ void set_merge_remote_desc(struct commit *commit,
                           const char *name, struct object *obj)
 {
        struct merge_remote_desc *desc;
-       desc = xmalloc(sizeof(*desc));
+       FLEX_ALLOC_STR(desc, name, name);
        desc->obj = obj;
-       desc->name = xstrdup(name);
        commit->util = desc;
 }
 
@@ -1627,16 +1626,6 @@ struct commit_list **commit_list_append(struct commit *commit,
        return &new->next;
 }
 
-void print_commit_list(struct commit_list *list,
-                      const char *format_cur,
-                      const char *format_last)
-{
-       for ( ; list; list = list->next) {
-               const char *format = list->next ? format_cur : format_last;
-               printf(format, oid_to_hex(&list->item->object.oid));
-       }
-}
-
 const char *find_commit_header(const char *msg, const char *key, size_t *out_len)
 {
        int key_len = strlen(key);