How can I override .hgrc options on the command line?

◇◆丶佛笑我妖孽 提交于 2019-12-07 01:52:26

问题


I typically want to ignore white space changes when diff'ing with mercurial. If I set this as a default by putting ignorews = true in my .hgrc's [diff] section then there doesn't seem to be a way to force the display of white space changes for a single invocation on the command line. What am I missing?

FWIW: None of the relevant command line options accepts an argument. Using the (deprecated) [defaults] section has the same behavior. I'm assuming the final answer will be "use an alias for ignoring space", but am hopeful something better exists.


回答1:


From the hg(1) man page:

   --config
          set/override config option (use 'section.name=value')


来源:https://stackoverflow.com/questions/3310658/how-can-i-override-hgrc-options-on-the-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!