info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Command-line multi-line messages for commit


From: Stephen Biggs
Subject: RE: Command-line multi-line messages for commit
Date: 03 Jun 2003 12:46:42 +0300

Thanks, all, for your replies.

I didn't try this:
$ cvs ci -m 'line 1
line 2
line 3'

I got it to work using another way which actually works better if you
don't want to be so interactive (one press of the enter key instead of
3):

$ cvs ci -m "line 1"'$\n'"line 2"'$\n'"line 3"


On Tue, 2003-06-03 at 11:02, Lemke, Michael IZ/HZA-IC1 wrote:
> > -----Original Message-----
> > From: Stephen Biggs [mailto:address@hidden 
> > Sent: Sunday, June 01, 2003 11:12 AM
> > To: address@hidden
> > Subject: Command-line multi-line messages for commit
> > 
> > 
> > Greetings all,
> > 
> > How do I enter in multi-line log messages when I want to commit?
> > 
> > I tried using "\n", "\\n", "^L" in the quoted text string for the "-m"
> > option but no go; all are on the same line with the quoted 
> > string in the
> > log message.  Running bash on Linux, Redhat 8.0.  I tried 
> > embedding for
> > bash using $'\n' but this whole string gets put into the log.
> > 
> > Basically how do I embed 0xa characters directly into the command line
> > for the commit command?  This might be more related to straight Linux
> > command line usage, and if this is off-topic, please excuse.  Any
> > assistance would be appreciated.
> 
> Don't think so complicated.  Why not try the simplest of all:
> 
> $ cvs ci -m 'line 1
> line 2
> line 3'
> $ 
> 
> Needs a Bourne Shell derivative.  I didn't try it but unless
> cvs plays some internal tricks it should work.
> 
> Michael
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]