Timestamps with SVN (using BBedit/Texmate)
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.
精彩评论