bug-rcs
[Top][All Lists]
Advanced

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

Suggested new feature for ci


From: Keith Thompson
Subject: Suggested new feature for ci
Date: Mon, 8 Nov 2010 12:36:47 -0800
User-agent: Mutt/1.5.19 (2009-01-05)

The "-m" option of the "ci" command makes it difficult to specify
an empty log message.  A workaround I often use is
    ci -l filename < /dev/null

Note that "cvs commit" has a similar "-m" option, but the log message
is always given as a separate argument, not bundled with the option.
Just copying that behavior for ci would probably break too many
existing scripts.

One possible solution, though it's a bit ugly, might be to define
behavior for an argument consisting of just "-m" (which is currently
an error):

    -mmsg       Uses "msg" as the message.
    -m          Uses the following argument as the message.

So
    ci -m '' foo
would check in "foo" with an empty log message, and a non-empty message
could be given either as:
    ci -mmessage foo
or
    ci -m message foo

-- 
Keith Thompson (The_Other_Keith) address@hidden  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"



reply via email to

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