pub unsafe extern "C" fn svn_delta_path_driver_step(
state: *mut svn_delta_path_driver_state_t,
relpath: *const c_char,
scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Visit @a relpath.
@a state is the object returned by svn_delta_path_driver_start().
@a relpath is a relpath relative to the root path of the edit.
This function uses the editor and the callback that were originally supplied to svn_delta_path_driver_start().
This drives the editor in a depth-first order, closing and then opening directories if necessary to move from the last visited path to the new path, as required by the editor driving rules.
This then calls the callback to allow the caller to handle the portion of the editor drive related to that path.
If the first path to visit is @c “” (the root of the edit), the callback function will be responsible for calling the editor’s @c open_root method; otherwise, this function will call @c open_root.
The order of paths to visit should in general be sorted using something like svn_sort_compare_paths() to ensure that each directory in the depth-first walk is visited only once. Some editors may rely on such a restriction.
@since New in 1.12.