diff options
author | Jeff Smith <whydoubt@gmail.com> | 2017-05-24 00:15:34 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-25 13:08:23 +0900 |
commit | 072bf4321fb484a8eabb315c031f47883336fba2 (patch) | |
tree | 0f9383dc774bc23df6e2e887f835d6c2fd0bdbdb /blame.h | |
parent | f5dd754c36f7d9cc7dd4c3f1a22e0e4a557b2021 (diff) | |
download | git-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |