(add-hook 'after-save-hook '(lambda ()
(if (vc-git-registered (buffer-file-name))
(if (file-exists-p (concat (vc-git-root (buffer-file-name)) "/.autocommit"))
(vc-git-checkin (buffer-file-name) nil (format-time-string "Autocommit %F %T"))))))
(if (vc-git-registered (buffer-file-name))
(if (file-exists-p (concat (vc-git-root (buffer-file-name)) "/.autocommit"))
(vc-git-checkin (buffer-file-name) nil (format-time-string "Autocommit %F %T"))))))
Much better.