Mercurial: multiline commit message on the command line?

前端 未结 7 925
走了就别回头了
走了就别回头了 2021-02-06 20:20

How can I specify a multiline commit message for mercurial on the command line?

hg commit -m \"* add foo\\n* fix bar\"

does not work. The log

7条回答
  •  醉酒成梦
    2021-02-06 21:12

    Here's another way that is more close to what you tried at first:

    hg commit -m "$(echo -e 'foo\nbar')"
    

提交回复
热议问题