I am using command-line svn. How do I stop it from requiring m开发者_如何学Goe to specify a log message on commits?
Normally, if I wanted to add a fixed argument to every invocation of a command, I'd use a shell alias -- but that doesn't really work for svn
, since you'd only want to apply it to the commit
subcommand.
I suppose you could alias svn
to a wrapper script that checks to see if its first argument is commit
or ci
, then invoke the real svn
, jamming in an empty -m
option if necessary. But I would neither write, nor advocate the use of, such a tool. :-)
You could try svn commit -m "They don't make Sunday."
Usually this is specified as a commit hook on the server side of things. If you don't have access to the server you usually can't change this.
精彩评论