Updating last-modified dates with a git hook
I wrote a git post-commit hook that looks at certain files in my repository whenever I change them, edits them a bit if it wants to, and commits any changes it made. Such a hook could be used to maintain "Last modified: ..." lines in static HTML files as shown below.