svn_io_run_diff2

Function svn_io_run_diff2 

Source
pub unsafe extern "C" fn svn_io_run_diff2(
    dir: *const c_char,
    user_args: *const *const c_char,
    num_user_args: c_int,
    label1: *const c_char,
    label2: *const c_char,
    from: *const c_char,
    to: *const c_char,
    exitcode: *mut c_int,
    outfile: *mut apr_file_t,
    errfile: *mut apr_file_t,
    diff_cmd: *const c_char,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Invoke the configured @c diff program, with @a user_args (an array of utf8-encoded @a num_user_args arguments) if they are specified (that is, if @a user_args is non-NULL), or “-u” if they are not. If @a user_args is NULL, the value of @a num_user_args is ignored.

Diff runs in utf8-encoded @a dir, and its exit status is stored in @a exitcode, if it is not @c NULL.

If @a label1 and/or @a label2 are not NULL they will be passed to the diff process as the arguments of “-L” options. @a label1 and @a label2 are also in utf8, and will be converted to native charset along with the other args.

@a from is the first file passed to diff, and @a to is the second. The stdout of diff will be sent to @a outfile, and the stderr to @a errfile.

@a diff_cmd must be non-NULL.

Do all allocation in @a pool. @since New in 1.6.0.