subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcor...@apache.org
Subject svn commit: r1135350 - /subversion/trunk/subversion/svnlook/main.c
Date Tue, 14 Jun 2011 00:29:48 GMT
Author: jcorvel
Date: Tue Jun 14 00:29:48 2011
New Revision: 1135350

URL: http://svn.apache.org/viewvc?rev=1135350&view=rev
Log:
Add support for '-x -p' (--show-c-function) to 'svnlook diff'.

* subversion/svnlook/main.c
  (apr_getopt_option_t): Add explanation of -p to the help text of the -x
   option (copy-n-paste from svn/main.c).
  (print_diff_tree): Use the opts->show_c_function flag in the call to
   svn_diff_file_output_unified3, instead of always passing FALSE.

Modified:
    subversion/trunk/subversion/svnlook/main.c

Modified: subversion/trunk/subversion/svnlook/main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnlook/main.c?rev=1135350&r1=1135349&r2=1135350&view=diff
==============================================================================
--- subversion/trunk/subversion/svnlook/main.c (original)
+++ subversion/trunk/subversion/svnlook/main.c Tue Jun 14 00:29:48 2011
@@ -176,7 +176,11 @@ static const apr_getopt_option_t options
       "                            "
       "    --ignore-eol-style:\n"
       "                            "
-      "       Ignore changes in EOL style")},
+      "       Ignore changes in EOL style\n"
+      "                            "
+      "    -p (--show-c-function):\n"
+      "                            "
+      "       Show C function name in diff output.")},
 
   {"quiet",             'q', 0,
    N_("no progress (only errors) to stderr")},
@@ -1078,7 +1082,8 @@ print_diff_tree(svn_fs_root_t *root,
               SVN_ERR(svn_diff_file_output_unified3
                       (ostream, diff, orig_path, new_path,
                        orig_label, new_label,
-                       svn_cmdline_output_encoding(pool), NULL, FALSE, pool));
+                       svn_cmdline_output_encoding(pool), NULL,
+                       opts->show_c_function, pool));
               SVN_ERR(svn_stream_close(ostream));
               SVN_ERR(svn_cmdline_printf(pool, "\n"));
               diff_header_printed = TRUE;



Mime
View raw message