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

external diff headers

From: Ben Collins-Sussman <sussman_at_newton.collab.net>
Date: 2001-01-26 21:32:17 CET

If I type

$ cvs diff foo.c bar.c baz.c

I get a series of diffs printed with nice header separators, something
like:

Index: foo.c
===================================================================
RCS file: /cvs/subversion/subversion/foo.c,v
retrieving revision 1.4

But right now, if I type

$ svn diff foo.c bar.c baz.c

...Subversion just dumps all the diffs in sequence, no headers.
Pretty hard to distinguish what's what.

You'd think it would be easy to fix this problem -- just printf() some
header info before spawning the external diff command. But remember
that /usr/bin/diff will print *nothing* if no diff exists -- so our
already-printed header would be meaningless. We don't want a bunch of
pointless headers printing.

The reason this isn't a problem for CVS is that it's diff/patch code is
built-in. This is a big project, and not a priority for us right now.

What we really need is a way to tell the diff program: "if you find a
diff, print these headers".

Anyone have suggestions here?
Received on Sat Oct 21 14:36:20 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.