commit_error
};
- extern enum commit_action get_commit_action(struct rev_info *revs, struct commit *commit);
- extern enum commit_action simplify_commit(struct rev_info *revs, struct commit *commit);
+ extern enum commit_action get_commit_action(struct rev_info *revs,
+ struct commit *commit);
+ extern enum commit_action simplify_commit(struct rev_info *revs,
+ struct commit *commit);
+enum rewrite_result {
+ rewrite_one_ok,
+ rewrite_one_noparents,
+ rewrite_one_error
+};
+
+typedef enum rewrite_result (*rewrite_parent_fn_t)(struct rev_info *revs, struct commit **pp);
+
+extern int rewrite_parents(struct rev_info *revs, struct commit *commit,
+ rewrite_parent_fn_t rewrite_parent);
#endif