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

RE: How to suppress Index: rows in svn diff

From: André Pönitz <andre_at_wasy.de>
Date: 2006-02-03 15:08:44 CET

Jojakim Stahl wrote:
> Is it possible to suppress the rows
> Index: <filename>
> ============================
> From svn diff output?
> I need this as my patch program doesn't accept these. Or am I
> using the wrong patch program? Any hints?

GNU patch handle the output of 'svn diff' just fine.

If you diff just single files, you might try to play with
 svn diff | tail +3 | patch -p0

(or similar) to strip the first two lines.

Or maybe sed -n '3,$p' instead of tail +3.

I guess there are lots of alternatives...


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 3 15:11:12 2006

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

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