svn_ra_get_path_relative_to_root

Function svn_ra_get_path_relative_to_root 

Source
pub unsafe extern "C" fn svn_ra_get_path_relative_to_root(
    ra_session: *mut svn_ra_session_t,
    rel_path: *mut *const c_char,
    url: *const c_char,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Convert @a url into a path relative to the repository root URL of the repository with which @a ra_session is associated, setting @a *rel_path to that value. If @a url is not a child of repository root URL, return @c SVN_ERR_RA_ILLEGAL_URL.

The returned path is uri decoded to allow using it with the ra or other apis as a valid relpath.

@since New in 1.7.