1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#ifndef INCLUDE_blame_h__
#define INCLUDE_blame_h__
#include "git2/blame.h"
#include "common.h"
#include "vector.h"
#include "diff.h"
#include "array.h"
#include "git2/oid.h"
struct git_blame {
const char *path;
git_repository *repository;
git_blame_options options;
git_vector hunks;
git_vector unclaimed_hunks;
git_vector paths;
git_blob *final_blob;
size_t num_lines;
git_oid current_commit;
git_oid parent_commit;
size_t current_diff_line;
size_t current_blame_line;
git_blame_hunk *current_hunk;
};
git_blame *git_blame__alloc(
git_repository *repo,
git_blame_options opts,
const char *path);
git_blame_hunk *git_blame__alloc_hunk();
#endif