contacts: fix to work in subdirectories
[gitweb.git] / commit.h
index 35cc4e266bd4afe0e00d2efb2781db2e95906936..90a5a3c361e02cd7a9562eff2ca1b15f77be0941 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -62,6 +62,9 @@ struct commit_list *commit_list_insert_by_date(struct commit *item,
                                    struct commit_list **list);
 void commit_list_sort_by_date(struct commit_list **list);
 
+/* Shallow copy of the input list */
+struct commit_list *copy_commit_list(struct commit_list *list);
+
 void free_commit_list(struct commit_list *list);
 
 /* Commit formats */
@@ -102,8 +105,6 @@ struct pretty_print_context {
         * Fields below here are manipulated internally by pp_* functions and
         * should not be counted on by callers.
         */
-
-       /* Manipulated by the pp_* functions internally. */
        struct string_list in_body_headers;
 };
 
@@ -207,7 +208,7 @@ int in_merge_bases_many(struct commit *, int, struct commit **);
 
 extern int interactive_add(int argc, const char **argv, const char *prefix, int patch);
 extern int run_add_interactive(const char *revision, const char *patch_mode,
-                              const char **pathspec);
+                              const struct pathspec *pathspec);
 
 static inline int single_parent(struct commit *commit)
 {