diff options
| author | Russell Belfer <rb@github.com> | 2013-10-11 14:51:54 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-10-11 14:51:54 -0700 |
| commit | 3ff1d123736e5686fb9ec16e65828d5b8ffa2b30 (patch) | |
| tree | 05c6baebe50c590008f91cf7d56732f52ca8ef66 /examples/log.c | |
| parent | 743531372a00e41246026910e2361684e2aad59f (diff) | |
| download | libgit2-3ff1d123736e5686fb9ec16e65828d5b8ffa2b30.tar.gz | |
Rename diff objects and split patch.h
This makes no functional change to diff but renames a couple of
the objects and splits the new git_patch (formerly git_diff_patch)
into a new header file.
Diffstat (limited to 'examples/log.c')
| -rw-r--r-- | examples/log.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/log.c b/examples/log.c index 413c211e4..2ba5aa52a 100644 --- a/examples/log.c +++ b/examples/log.c @@ -184,7 +184,7 @@ static void print_commit(git_commit *commit) static int print_diff( const git_diff_delta *delta, - const git_diff_range *range, + const git_diff_hunk *range, char usage, const char *line, size_t line_len, @@ -218,7 +218,7 @@ static int match_with_parent( { git_commit *parent; git_tree *a, *b; - git_diff_list *diff; + git_diff *diff; int ndeltas; check(git_commit_parent(&parent, commit, (size_t)i), "Get parent", NULL); @@ -229,7 +229,7 @@ static int match_with_parent( ndeltas = (int)git_diff_num_deltas(diff); - git_diff_list_free(diff); + git_diff_free(diff); git_tree_free(a); git_tree_free(b); git_commit_free(parent); @@ -373,7 +373,7 @@ int main(int argc, char *argv[]) if (opt.show_diff) { git_tree *a = NULL, *b = NULL; - git_diff_list *diff = NULL; + git_diff *diff = NULL; if (parents > 1) continue; @@ -391,7 +391,7 @@ int main(int argc, char *argv[]) check(git_diff_print_patch(diff, print_diff, NULL), "Displaying diff", NULL); - git_diff_list_free(diff); + git_diff_free(diff); git_tree_free(a); git_tree_free(b); } |
