我想获得 Git 命令的类似输出:
$ git whatchanged <old_rev>..<new_rev> --pretty=oneline --name-status
我读到这hg outgoing
可以提供帮助,但它的帮助页面中没有任何与修订相关的内容:
$ hg diff <old_rev>..<new_rev>
给出了差异,但输出是:
diff -r d3ed0d3eb928 -r 63329069147f hello.rb
--- a/hello.rb Tue Jul 31 16:52:40 2012 +0530
+++ b/hello.rb Wed Aug 01 11:15:33 2012 +0530
@@ -1,1 +1,1 @@
-print "Hello"
+print "Hello World"
虽然我需要类似的东西:
bb3b9a6bc00b7203ab6491dbd062641fa60efb95 Fix for #4 and other small errors
M .gitignore
A config.ru
D db/database.db
M views/setup.haml
1c4ff29e5c7fc707c6fe314c060cd1935b300dd9 Added keyboard shortcuts and reload
M README.md
A public/javascript/keys.js
d0755d0b54cb4129fbf7730fe0bdf21a3996e224 Basic player completed
M README.md
D public/javascript/jquery-ui-1.8.21.custom.min.js
...
我得到的git whatchanged 1c4ff29e5c7fc707c6fe314c060cd1935b300dd9 bb3b9a6bc00b7203ab6491dbd062641fa60efb95 --pretty=oneline --name-status