blame: move fake-commit-related methods to libgit
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/blame.h b/blame.h
index 49b685e..0d10e17 100644
--- a/blame.h
+++ b/blame.h
@@ -6,6 +6,7 @@
#include "xdiff-interface.h"
#include "revision.h"
#include "prio-queue.h"
+#include "diff.h"
/*
* One blob in a commit that is being suspected
@@ -152,7 +153,8 @@ static inline struct blame_origin *blame_origin_incref(struct blame_origin *o)
}
extern void blame_origin_decref(struct blame_origin *o);
-extern struct blame_origin *make_origin(struct commit *commit, const char *path);
extern struct blame_origin *get_origin(struct commit *commit, const char *path);
+extern struct commit *fake_working_tree_commit(struct diff_options *opt, const char *path, const char *contents_from);
+
#endif /* BLAME_H */