How to use modified timestamp from file as .Lastmod?

Yes. And my initial thought was that this would also override whatever is set in Lastmod (which is probably stale and old by now).

So: If EnableGitInfo is true, lastmod will always equal the latest Git revision for that file. In addition you can use the rest of the attributes in the GitInfo object (author etc?)

I have figured a way to make this Git integration really fast, so I will probably cook up a complete solution in a day or two.

2 Likes