首先为我糟糕的英语道歉。
我曾经使用at git。
但是svn没有HEAD^
如何方便地显示HEAD版本号的先前版本?
这是一个两步过程
看起来SVN不支持这种类型的语法。手册和其他在线帖子似乎支持这一点(见下文)。
源自http://svn.haxx.se/users/archive-2007-10/0356.shtml:
#!/bin/bash
REPO=http://svn.collab.net/repos/svn
HEAD=`svn info $REPO | sed -E -n 's%^Revision: %%p'`
svn diff -c-$HEAD $REPO
来源- http://svnbook.red-bean.com/en/1.5/svn-book.html svn.tour.revs.keywords
- http://svn.haxx.se/users/archive - 2007 10/0296.shtml