You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ko...@apache.org on 2021/03/02 19:00:06 UTC

svn commit: r1887111 - /subversion/trunk/subversion/libsvn_wc/working_file_writer.c

Author: kotkov
Date: Tue Mar  2 19:00:05 2021
New Revision: 1887111

URL: http://svn.apache.org/viewvc?rev=1887111&view=rev
Log:
* subversion/libsvn_wc/working_file_writer.c
  (svn_wc__working_file_writer_open):
   Inline the contents of the svn_subst_translation_required() check.
   With the `force_eol_check` parameter set to TRUE, it should be equivalent
   to seeing if we have any keywords or any eol style, so we might as well
   check for those things explicitly.

Modified:
    subversion/trunk/subversion/libsvn_wc/working_file_writer.c

Modified: subversion/trunk/subversion/libsvn_wc/working_file_writer.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/working_file_writer.c?rev=1887111&r1=1887110&r2=1887111&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/working_file_writer.c (original)
+++ subversion/trunk/subversion/libsvn_wc/working_file_writer.c Tue Mar  2 19:00:05 2021
@@ -88,9 +88,7 @@ svn_wc__working_file_writer_open(svn_wc_
 
   write_stream = install_stream;
 
-  if (svn_subst_translation_required(eol_style, eol, keywords,
-                                     FALSE /* special */,
-                                     TRUE /* force_eol_check */))
+  if (keywords || eol_style != svn_subst_eol_style_none)
     {
       write_stream = svn_subst_stream_translated(write_stream,
                                                  eol,