开发者

Diffing only modified files in Mercurial

开发者 https://www.devze.com 2023-01-15 17:44 出处:网络
In Mercurial it\'s possible to hg status only the modified/added/removed files by doing: hg 开发者_如何学JAVAst -m

In Mercurial it's possible to hg status only the modified/added/removed files by doing:

hg 开发者_如何学JAVAst -m
hg st -a
hg st -r

Is it possible to obtain the same behaviour for the diff command? From the man page, it seems not.


One option would be to use something like this:

hg status -mar --no-status | xargs hg diff

The --no-status flag insures that just the file name is sent to STDOUT.

0

精彩评论

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