[Top][All Lists]

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

Re: Command-line multi-line messages for commit

From: Eric Siegerman
Subject: Re: Command-line multi-line messages for commit
Date: Tue, 3 Jun 2003 19:44:52 -0400
User-agent: Mutt/1.2.5i

On Tue, Jun 03, 2003 at 12:46:42PM +0300, Stephen Biggs wrote:
> 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"

Yikes!  Non-interactive it may be, but pretty painful!  How about
writing a wrapper shell script?  You would invoke it as:
   cvs-wrapper -m 'message\ncontaining\nmultiple lines' other-args

It would have to do something like:
  - extract (and remove) the -m and its value from the command line
  - turn the "\n"s into newlines (and any other transformations
    you like)
  - export CVSEDITOR=`which cat` into the environment
  - go:
        echo $transformed_log_message | cvs $other_args


|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
        - Michael Collins, Apollo 11 Command Module Pilot

reply via email to

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