diff options
author | Vicent Martà <vicent@github.com> | 2013-06-18 04:30:25 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-06-18 04:30:25 -0700 |
commit | ffb762fed99bee33656ae00c3bfd06176b31ca82 (patch) | |
tree | fd749629f57c7d288ad7acbd036e094bb7e74b95 /src/diff_file.h | |
parent | c09810eedfd89923e5bda25d0c98def292dee732 (diff) | |
parent | 74ded024572318a32ff537c5f8dce001e9812e6b (diff) | |
download | libgit2-ffb762fed99bee33656ae00c3bfd06176b31ca82.tar.gz |
Merge pull request #1657 from arrbee/diff-blob-as-path
Add "as_path" parameters to blob and buffer diff APIs
Diffstat (limited to 'src/diff_file.h')
-rw-r--r-- | src/diff_file.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/diff_file.h b/src/diff_file.h index afad8510b..fb08cca6a 100644 --- a/src/diff_file.h +++ b/src/diff_file.h @@ -15,8 +15,9 @@ /* expanded information for one side of a delta */ typedef struct { git_repository *repo; - git_diff_file file; + git_diff_file *file; git_diff_driver *driver; + uint32_t flags; uint32_t opts_flags; git_off_t opts_max_size; git_iterator_type_t src; @@ -34,14 +35,16 @@ extern int git_diff_file_content__init_from_blob( git_diff_file_content *fc, git_repository *repo, const git_diff_options *opts, - const git_blob *blob); + const git_blob *blob, + git_diff_file *as_file); extern int git_diff_file_content__init_from_raw( git_diff_file_content *fc, git_repository *repo, const git_diff_options *opts, const char *buf, - size_t buflen); + size_t buflen, + git_diff_file *as_file); /* this loads the blob/file-on-disk as needed */ extern int git_diff_file_content__load(git_diff_file_content *fc); |