FreeBSD/contrib/subversion/subversion/libsvn_client/blame.c
/* Callback for diff between subsequent revisions */
Callback for diff between subsequent revisions
Callback for diff between subsequent revisions
static svn_error_t *
output_diff_modified(void *baton,
                     apr_off_t original_start,
                     apr_off_t original_length,
                     apr_off_t modified_start,
                     apr_off_t modified_length,
                     apr_off_t latest_start,
                     apr_off_t latest_length)
{
  struct diff_baton *db = baton;
  if (original_length)
    SVN_ERR(blame_delete_range(db->chain, modified_start, original_length));
  if (modified_length)
    SVN_ERR(blame_insert_range(db->chain, db->rev, modified_start,
                               modified_length));
  return SVN_NO_ERROR;
}
static svn_error_t * output_diff_modified ( void * baton , apr_off_t original_start , apr_off_t original_length , apr_off_t modified_start , apr_off_t modified_length , apr_off_t latest_start , apr_off_t latest_length ) { struct diff_baton * db = baton ; if ( original_length ) SVN_ERR ( blame_delete_range ( db -> chain , modified_start , original_length ) ) ; if ( modified_length ) SVN_ERR ( blame_insert_range ( db -> chain , db -> rev , modified_start , modified_length ) ) ; return SVN_NO_ERROR ; }
Callback for diff between subsequent revisions
Callback for diff between subsequent revisions