Every revision to the doc becomes a commit to a plain text version of the doc in the Git repo, with the correct author and time.
It's web based since it has to do the OAuth dance with Google to use the Google Drive API, but it runs completely client-side from then on.