开发者

Don't require a log message in svn

开发者 https://www.devze.com 2023-02-13 08:12 出处:网络
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 u

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消