From 072bf4321fb484a8eabb315c031f47883336fba2 Mon Sep 17 00:00:00 2001 From: Jeff Smith Date: Wed, 24 May 2017 00:15:34 -0500 Subject: blame: move fake-commit-related methods to libgit Signed-off-by: Jeff Smith Signed-off-by: Junio C Hamano --- blame.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'blame.h') diff --git a/blame.h b/blame.h index 49b685e0fd..0d10e17c96 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 */ -- cgit v1.2.3