[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] svn diff --summarize

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-02-01 00:03:35 CET

A while back we added summarize versions of the svn_client_diff
functions, to give you a summary of what changed without actually
displaying the deltas. These were intended to be used in GUI clients,
and we don't currently expose the functionality in the command line
client at all. On the other hand, users have at various times asked
for the functionality, so I decided to take a look and see how hard it
would be to implement.

Here's a patch adding the --summarize option to svn diff, just so
people can see what I'm talking about.

-garrett

[[[
Add a --summarize option to svn diff, which makes it to avoid showing
the actual differences and just display a summary of what has been
modified.

* subversion/svn/cl.h
  (svn_cl__summarize): New option identifier.
  (svn_cl__opt_state_t): Add a summarize flag.

* subversion/svn/main.c
  (svn_cl__options): Add summarize.
  (svn_cl__cmd_table): Add summarize to diff.
  (main): Handle the --summarize option.

* subversion/svn/diff-cmd.c
  (text_mod_char): Helper function.
  (summarize_func): Callback to print the summary data for a file/dir.
  (svn_cl__diff): If we've been given the --summarize option call the
   summarize variant of the appropriate diff function.
]]]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Wed Feb 1 00:03:57 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.