Suggested new feature for ci
Keith Thompson <[email protected]> Mon, 8 Nov 2010 12:36:47 -0800
| Newsgroups | gmane.comp.version-control.rcs.bugs |
|---|---|
| Message-ID | <[email protected]> |
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) [email protected] <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"