pub unsafe extern "C" fn svn_wc_get_diff_editor6(
editor: *mut *const svn_delta_editor_t,
edit_baton: *mut *mut c_void,
wc_ctx: *mut svn_wc_context_t,
anchor_abspath: *const c_char,
target: *const c_char,
depth: svn_depth_t,
ignore_ancestry: svn_boolean_t,
show_copies_as_adds: svn_boolean_t,
use_git_diff_format: svn_boolean_t,
use_text_base: svn_boolean_t,
reverse_order: svn_boolean_t,
server_performs_filtering: svn_boolean_t,
changelist_filter: *const apr_array_header_t,
callbacks: *const svn_wc_diff_callbacks4_t,
callback_baton: *mut c_void,
cancel_func: svn_cancel_func_t,
cancel_baton: *mut c_void,
result_pool: *mut apr_pool_t,
scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
DEPRECATED – please use APIs from svn_client.h
Return an @a editor/@a edit_baton for diffing a working copy against the repository. The editor is allocated in @a result_pool; temporary calculations are performed in @a scratch_pool.
This editor supports diffing either the actual files and properties in the working copy (when @a use_text_base is #FALSE), or the current pristine information (when @a use_text_base is #TRUE) against the editor driver.
@a anchor_abspath/@a target represent the base of the hierarchy to be compared. The diff callback paths will be relative to this path.
Diffs will be reported as valid relpaths, with @a anchor_abspath being the root (“”).
@a callbacks/@a callback_baton is the callback table to use.
If @a depth is #svn_depth_empty, just diff exactly @a target or @a anchor_path if @a target is empty. If #svn_depth_files then do the same and for top-level file entries as well (if any). If #svn_depth_immediates, do the same as #svn_depth_files but also diff top-level subdirectories at #svn_depth_empty. If #svn_depth_infinity, then diff fully recursively.
@a ignore_ancestry determines whether paths that have discontinuous node ancestry are treated as delete/add or as simple modifications. If @a ignore_ancestry is @c FALSE, then any discontinuous node ancestry will result in the diff given as a full delete followed by an add.
@a show_copies_as_adds determines whether paths added with history will appear as a diff against their copy source, or whether such paths will appear as if they were newly added in their entirety. @a show_copies_as_adds implies not @a ignore_ancestry.
If @a use_git_diff_format is TRUE, copied paths will be treated as added if they weren’t modified after being copied. This allows the callbacks to generate appropriate –git diff headers for such files. @a use_git_diff_format implies @a show_copies_as_adds, and as such implies not @a ignore_ancestry.
Normally, the difference from repository->working_copy is shown. If @a reverse_order is TRUE, then show working_copy->repository diffs.
If @a cancel_func is non-NULL, it will be used along with @a cancel_baton to periodically check if the client has canceled the operation.
@a changelist_filter is an array of const char * changelist names, used as a restrictive filter on items whose differences are reported; that is, don’t generate diffs about any item unless it’s a member of one of those changelists. If @a changelist_filter is empty (or altogether @c NULL), no changelist filtering occurs.
If @a server_performs_filtering is TRUE, assume that the server handles the ambient depth filtering, so this doesn’t have to be handled in the editor.
@since New in 1.7. @deprecated Provided for backward compatibility with the 1.7 API.