diff options
author | Vicent Martà <vicent@github.com> | 2013-11-19 11:36:02 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-11-19 11:36:02 -0800 |
commit | e479628a01eddafd357bd3b49526ab49998edcef (patch) | |
tree | ab8d7b7b6646ab1b3fcb8af0133ae2a9575ac979 /include/git2/diff.h | |
parent | 7146eff309938c966e379d0e03825f3eabcc52be (diff) | |
parent | d8e7ffc2a246491aa139875e840fff34c832a739 (diff) | |
download | libgit2-e479628a01eddafd357bd3b49526ab49998edcef.tar.gz |
Merge pull request #1966 from nickh/patch_content_offsets
Add content offset to git_diff_line
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r-- | include/git2/diff.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h index a16f86a46..61d288380 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -446,6 +446,7 @@ struct git_diff_line { int new_lineno; /** Line number in new file or -1 for deleted line */ int num_lines; /** Number of newline characters in content */ size_t content_len; /** Number of bytes of data */ + git_off_t content_offset; /** Offset in the original file to the content */ const char *content; /** Pointer to diff text, not NUL-byte terminated */ }; |