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

Re: Ok. I just had this brainstorm....

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-09-25 17:57:50 CEST

"Files" <files@poetryunlimited.com> writes:

> I can autostart a vi script to execute the following somehow??? How
> would I pass it to subversion?
>
> :g/^A /s//Added/g
> :g/^M /s//Modified/g
> :g/^D /s//Deleted/g

For a more traditional vi, one that allows only a single -c option,
put those commands into some file foo and use

  SVN_EDITOR='vi -c so\ foo'

If you are using vim then you can dispense with the file and use
multiple -c options

 SVN_EDITOR='vim -c :g!/^A\ /s//Added/g -c :g!/^M\ /s//Modified/g -c :g!/^D\ /s//Deleted/g'

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 25 18:08:29 2003

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.