003 File Manager
Current Path:
/usr/src/contrib/subversion/subversion/include/private
usr
/
src
/
contrib
/
subversion
/
subversion
/
include
/
private
/
📁
..
📄
README
(241 B)
📄
ra_svn_sasl.h
(2.63 KB)
📄
ra_svn_wrapped_sasl.h
(3.89 KB)
📄
svn_adler32.h
(1.47 KB)
📄
svn_atomic.h
(4.83 KB)
📄
svn_auth_private.h
(11.32 KB)
📄
svn_branch.h
(22.98 KB)
📄
svn_branch_compat.h
(10.78 KB)
📄
svn_branch_impl.h
(5.67 KB)
📄
svn_branch_nested.h
(7.55 KB)
📄
svn_branch_repos.h
(3.47 KB)
📄
svn_cache.h
(22.67 KB)
📄
svn_cert.h
(2.27 KB)
📄
svn_client_mtcc.h
(7.8 KB)
📄
svn_client_private.h
(22.85 KB)
📄
svn_client_shelf.h
(16.26 KB)
📄
svn_client_shelf2.h
(15.27 KB)
📄
svn_cmdline_private.h
(10.52 KB)
📄
svn_config_private.h
(4.26 KB)
📄
svn_dav_protocol.h
(2.56 KB)
📄
svn_debug.h
(3.35 KB)
📄
svn_delta_private.h
(4.91 KB)
📄
svn_dep_compat.h
(6.64 KB)
📄
svn_diff_private.h
(6 KB)
📄
svn_diff_tree.h
(14.32 KB)
📄
svn_dirent_uri_private.h
(1.85 KB)
📄
svn_doxygen.h
(1.27 KB)
📄
svn_editor.h
(43.09 KB)
📄
svn_element.h
(12.83 KB)
📄
svn_eol_private.h
(3.18 KB)
📄
svn_error_private.h
(1.67 KB)
📄
svn_fs_fs_private.h
(11.08 KB)
📄
svn_fs_private.h
(8.36 KB)
📄
svn_fs_util.h
(11.11 KB)
📄
svn_fspath.h
(5.36 KB)
📄
svn_io_private.h
(6.47 KB)
📄
svn_log.h
(6.96 KB)
📄
svn_magic.h
(2.36 KB)
📄
svn_mergeinfo_private.h
(12.71 KB)
📄
svn_mutex.h
(4.3 KB)
📄
svn_object_pool.h
(4.53 KB)
📄
svn_opt_private.h
(5.73 KB)
📄
svn_packed_data.h
(9.39 KB)
📄
svn_ra_private.h
(12.07 KB)
📄
svn_ra_svn_private.h
(38.63 KB)
📄
svn_repos_private.h
(15.45 KB)
📄
svn_skel.h
(8.46 KB)
📄
svn_sorts_private.h
(7.66 KB)
📄
svn_sqlite.h
(23.22 KB)
📄
svn_string_private.h
(11.05 KB)
📄
svn_subr_private.h
(24.43 KB)
📄
svn_temp_serializer.h
(8.75 KB)
📄
svn_token.h
(3.11 KB)
📄
svn_utf_private.h
(11.18 KB)
📄
svn_wc_private.h
(93.26 KB)
Editing: svn_diff_private.h
/** * @copyright * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== * @endcopyright */ #ifndef SVN_DIFF_PRIVATE_H #define SVN_DIFF_PRIVATE_H #include <apr_pools.h> #include <apr_tables.h> #include "svn_types.h" #include "svn_io.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* The separator string used below the "Index:" or similar line of * Subversion's Unidiff-like diff format. */ #define SVN_DIFF__EQUAL_STRING \ "===================================================================" /* The separator string used below the "Properties on ..." line of * Subversion's Unidiff-like diff format. */ #define SVN_DIFF__UNDER_STRING \ "___________________________________________________________________" /* The string used to mark a line in a hunk that doesn't end with a newline, * when diffing a file. Intentionally not marked for translation, for wider * interoperability with patch(1) programs. */ #define SVN_DIFF__NO_NEWLINE_AT_END_OF_FILE \ "\\ No newline at end of file" /* The string used to mark a line in a hunk that doesn't end with a newline, * when diffing a Subversion property. */ #define SVN_DIFF__NO_NEWLINE_AT_END_OF_PROPERTY \ "\\ No newline at end of property" /* Write a unidiff "---" and "+++" header to OUTPUT_STREAM. * * Write "---" followed by a space and OLD_HEADER and a newline, * then "+++" followed by a space and NEW_HEADER and a newline. * * The text will be encoded into HEADER_ENCODING. */ svn_error_t * svn_diff__unidiff_write_header(svn_stream_t *output_stream, const char *header_encoding, const char *old_header, const char *new_header, apr_pool_t *scratch_pool); /* Display property changes in pseudo-Unidiff format. * * Write to @a outstream the changes described by @a propchanges based on * original properties @a original_props. * * Write all mark-up text (headers and so on) using the character encoding * @a encoding. * * ### I think the idea is: we want the output to use @a encoding, and * we will assume the text of the user's files and the values of any * user-defined properties are already using @a encoding, so we don't * want to re-code the *whole* output. * So, shouldn't we also convert all prop names and all 'svn:*' prop * values to @a encoding, since we know those are stored in UTF-8? * * @a original_props is a hash mapping (const char *) property names to * (svn_string_t *) values. @a propchanges is an array of svn_prop_t * representing the new values for any of the properties that changed, with * a NULL value to represent deletion. * * If @a pretty_print_mergeinfo is true, then describe 'svn:mergeinfo' * property changes in a human-readable form that says what changes were * merged or reverse merged; otherwise (or if the mergeinfo property values * don't parse correctly) display them just like any other property. * * Pass @a context_size, @a cancel_func and @a cancel_baton to the diff * output functions. * * Use @a scratch_pool for temporary allocations. */ svn_error_t * svn_diff__display_prop_diffs(svn_stream_t *outstream, const char *encoding, const apr_array_header_t *propchanges, apr_hash_t *original_props, svn_boolean_t pretty_print_mergeinfo, int context_size, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *scratch_pool); /** Create a hunk object that adds a single line without newline. Return the * new object in @a *hunk. * * @a line is the added text, without a trailing newline. * * The hunk will be associated with @a patch. */ svn_error_t * svn_diff_hunk__create_adds_single_line(svn_diff_hunk_t **hunk, const char *line, const svn_patch_t *patch, apr_pool_t *result_pool, apr_pool_t *scratch_pool); /** Create a hunk object that deletes a single line without newline. Return * the new object in @a *hunk. * * @a line is the deleted text, without a trailing newline. * * The hunk will be associated with @a patch. */ svn_error_t * svn_diff_hunk__create_deletes_single_line(svn_diff_hunk_t **hunk, const char *line, const svn_patch_t *patch, apr_pool_t *result_pool, apr_pool_t *scratch_pool); /** Fetches the penalty fuzz of the diff hunk. The patch file parser applies * an additional penalty on some cases of bad patch files. These cases may * include errors as headers that aren't consistent with bodies, etc. */ svn_linenum_t svn_diff_hunk__get_fuzz_penalty(const svn_diff_hunk_t *hunk); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* SVN_DIFF_PRIVATE_H */
Upload File
Create Folder