开发者

Timestamps with SVN (using BBedit/Texmate)

开发者_如何学JAVA

Is there a way to auto insert a time stamp into a document (html/css/ js/php/pl/txt) with every commit?


You can use Subversion's Keyword Substitution. First you must set the svn:keywords property on any files you want the substitution to occur on:

% svn propset svn:keywords "Date" /path/to/file

Then in your sourcecode, include the following:

$LastChangedDate$

There are other useful substitution keywords available such as Id which includes a combination of the revision, the modification date, and the user who made the commit.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜