How do you save?

There seems a lot of synchrony with @Yaisog’s work on https://yaisog-patches.tiddlyhost.com/, recently discussed in In-Wiki Incremental Revisions -- Now Even Better!.

I think my ideal workflow would be a bit different:

  • On every save (which is damned frequent with Node), I would like for the server to do a git add . and git commit -m "Generic (timestamped) save message"
  • The TW save button has an additional option that allows me to create a commit message that gets passed back to the server, which then merges the time-stamped commits into a single commit, and does a git push with the result.
  • Alongside the commit message would be a checkbox that lets me choose whether to publish the result as well, and another that lets me create a tag for a new version. These are passed along to the server, and the right git commands are performed for these.

That would reduce all sorts of manual tasks I perform.

I could see combining this with some of Yaisog’s work if I wanted to turn this into a publicly available tool. For my own part, I have no problem using the git command line on those occasions when I want to look at diffs. But an inline viewer such as Yaisog created, tied to an external diff from the server, might be a really nice feature.