类似 git svn log 对 git log 的模拟,svn annotate 的等效命令是 git svn blame [文件名]。其输出如下:
$ git svn blame README.txt
2 temporal Protocol Buffers - Google's data interchange format
2 temporal Copyright 2008 Google Inc.
2 temporal http://code.google.com/apis/protocolbuffers/
2 temporal
22 temporal C++ Installation - Unix
22 temporal =======================
2 temporal
79 schacon Committing in git-svn.
78 schacon
2 temporal To build and install the C++ Protocol Buffer runtime and the Protocol
2 temporal Buffer compiler (protoc) execute the following:
2 temporal
同样,它不显示本地的 Git 提交以及 Subversion 上后来更新的内容。
REF:http://cwiki.ossez.com/pages/viewpage.action?pageId=7045944