diff options
author | Jeff Smith <whydoubt@gmail.com> | 2017-05-24 07:15:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-25 06:08:23 +0200 |
commit | 09002f1b31482dfbd0f471cd3614d542ea7a77a4 (patch) | |
tree | 01086a070d3eedde775f1d906061d9d7ee001164 /blame.h | |
parent | blame: move scoreboard-related methods to libgit (diff) | |
download | git-09002f1b31482dfbd0f471cd3614d542ea7a77a4.tar.xz git-09002f1b31482dfbd0f471cd3614d542ea7a77a4.zip |
blame: move scoreboard setup 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 | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -13,6 +13,9 @@ #define PICKAXE_BLAME_COPY_HARDER 04 #define PICKAXE_BLAME_COPY_HARDEST 010 +#define BLAME_DEFAULT_MOVE_SCORE 20 +#define BLAME_DEFAULT_COPY_SCORE 40 + /* * One blob in a commit that is being suspected */ @@ -158,14 +161,13 @@ 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 *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); +extern void init_scoreboard(struct blame_scoreboard *sb); +extern void setup_scoreboard(struct blame_scoreboard *sb, const char *path, struct blame_origin **orig); + #endif /* BLAME_H */ |