diff options
author | Jeff Smith <whydoubt@gmail.com> | 2017-05-24 00:15:35 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-25 13:08:23 +0900 |
commit | b543bb1cdfc9b61b262a848f936c326f4b060a6c (patch) | |
tree | bdcdd95785ea2ec86eb4f40a0c67bc3dbead6a0f /blame.h | |
parent | 072bf4321fb484a8eabb315c031f47883336fba2 (diff) | |
download | git-b543bb1cdfc9b61b262a848f936c326f4b060a6c.tar.gz |
blame: move scoreboard-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 | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -8,6 +8,11 @@ #include "prio-queue.h" #include "diff.h" +#define PICKAXE_BLAME_MOVE 01 +#define PICKAXE_BLAME_COPY 02 +#define PICKAXE_BLAME_COPY_HARDER 04 +#define PICKAXE_BLAME_COPY_HARDEST 010 + /* * One blob in a commit that is being suspected */ @@ -157,4 +162,10 @@ 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); +extern void blame_coalesce(struct blame_scoreboard *sb); +extern void blame_sort_final(struct blame_scoreboard *sb); +extern unsigned blame_entry_score(struct blame_scoreboard *sb, struct blame_entry *e); +extern void assign_blame(struct blame_scoreboard *sb, int opt); +extern const char *blame_nth_line(struct blame_scoreboard *sb, long lno); + #endif /* BLAME_H */ |