pub unsafe extern "C" fn svn_wc_get_pristine_contents2(
contents: *mut *mut svn_stream_t,
wc_ctx: *mut svn_wc_context_t,
local_abspath: *const c_char,
result_pool: *mut apr_pool_t,
scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Given a @a path to a wc file, return in @a *contents a readonly stream to the pristine contents of the file that would serve as base content for the next commit. That means:
When there is no change in node history scheduled, i.e. when there are only local text-mods, prop-mods or a delete, return the last checked-out or updated-/switched-to contents of the file.
If the file is simply added or replaced (no copy-/move-here involved), set @a *contents to @c NULL.
When the file has been locally copied-/moved-here, return the contents of the copy/move source (even if the copy-/move-here replaces a locally deleted file).
If @a local_abspath refers to an unversioned or non-existent path, return @c SVN_ERR_WC_PATH_NOT_FOUND. Use @a wc_ctx to access the working copy. @a contents may not be @c NULL (unlike @a *contents).
@since New in 1.7.