pub unsafe extern "C" fn svn_diff_mem_string_output_unified3(
output_stream: *mut svn_stream_t,
diff: *mut svn_diff_t,
with_diff_header: svn_boolean_t,
hunk_delimiter: *const c_char,
original_header: *const c_char,
modified_header: *const c_char,
header_encoding: *const c_char,
original: *const svn_string_t,
modified: *const svn_string_t,
context_size: c_int,
cancel_func: svn_cancel_func_t,
cancel_baton: *mut c_void,
scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Outputs the @a diff object generated by svn_diff_mem_string_diff() in unified diff format on @a output_stream, using @a original and @a modified for the text in the output.
If @a with_diff_header is TRUE, write a diff header (“—” and “+++” lines), using @a original_header and @a modified_header to fill the field after the “—” and “+++” markers; otherwise @a original_header and @a modified_header are ignored and may be NULL.
Outputs the header and hunk delimiters in @a header_encoding. A @a hunk_delimiter can optionally be specified. If @a hunk_delimiter is NULL, use the default hunk delimiter “@@”.
As a special case, if the hunk delimiter is “##”, then for an incomplete final line use the text “\ No newline at end of property” instead of “\ No newline at end of file”.
If @a context_size is not negative, then this number of context lines will be used in the generated diff output. Otherwise the legacy compile time default will be used.
If not @c NULL, call @a cancel_func with @a cancel_baton once or multiple times while processing larger diffs.
Uses @a scratch_pool for temporary allocations.
@since New in 1.9