Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c2d82a6533
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 45 lines (36 sloc) 0.759 kb
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 38 39 40 41 42 43 44
#include "fileops.h"
#include "git2/diff.h"

extern git_tree *resolve_commit_oid_to_tree(
git_repository *repo, const char *partial_oid);

typedef struct {
int files;
int file_adds;
int file_dels;
int file_mods;
int file_ignored;
int file_untracked;

int hunks;
int hunk_new_lines;
int hunk_old_lines;

int lines;
int line_ctxt;
int line_adds;
int line_dels;
} diff_expects;

extern int diff_file_fn(
void *cb_data,
git_diff_delta *delta,
float progress);

extern int diff_hunk_fn(
void *cb_data,
git_diff_delta *delta,
git_diff_range *range,
const char *header,
size_t header_len);

extern int diff_line_fn(
void *cb_data,
git_diff_delta *delta,
git_diff_range *range,
char line_origin,
const char *content,
size_t content_len);

Something went wrong with that request. Please try again.