pub unsafe extern "C" fn svn_wc_get_actual_target2(
anchor: *mut *const c_char,
target: *mut *const c_char,
wc_ctx: *mut svn_wc_context_t,
path: *const c_char,
result_pool: *mut apr_pool_t,
scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Conditionally split @a path into an @a anchor and @a target for the purpose of updating and committing.
@a anchor is the directory at which the update or commit editor should be rooted.
@a target is the actual subject (relative to the @a anchor) of the update/commit, or “” if the @a anchor itself is the subject.
Allocate @a anchor and @a target in @a result_pool; @a scratch_pool is used for temporary allocations.
@note Even though this API uses a #svn_wc_context_t, it accepts a (possibly) relative path and returns a (possibly) relative path in @a *anchor. The reason being that the outputs are generally used to open access batons, and such opening currently requires relative paths. In the long-run, I expect this API to be removed from 1.7, due to the remove of access batons, but for the time being, the #svn_wc_context_t parameter allows us to avoid opening a duplicate database, just for this function.
@since New in 1.7.