summaryrefslogtreecommitdiff
path: root/blame.h
diff options
context:
space:
mode:
authorJeff Smith <whydoubt@gmail.com>2017-05-24 00:15:34 -0500
committerJunio C Hamano <gitster@pobox.com>2017-05-25 13:08:23 +0900
commit072bf4321fb484a8eabb315c031f47883336fba2 (patch)
tree0f9383dc774bc23df6e2e887f835d6c2fd0bdbdb /blame.h
parentf5dd754c36f7d9cc7dd4c3f1a22e0e4a557b2021 (diff)
downloadgit-072bf4321fb484a8eabb315c031f47883336fba2.tar.gz
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>
Diffstat (limited to 'blame.h')
-rw-r--r--blame.h4
1 files changed, 3 insertions, 1 deletions
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 */