Could a Git repositary for a single file wiki be 'converted' into a repository for a Node.js wiki?

This question is more just to satisfy my curiosity than anything else.

Say I used Git to keep a version history of a single-file TiddlyWiki. If I decided to convert that wiki into a Node.js TiddlyWiki, would it be theoretically possible to somehow also convert the Git repository to a format that was compatible with the new wiki? So that I would be able to checkout commits made when I was using the single-file version, but in the new Node.js format?

I think you would have to make a new git repository from the old. Write a script which loops through the commits in the git history. For each commit it could perform a checkout of the single file and then run the command to convert it into a Node.js TiddlyWiki. Then run a git checkin into the new git repository. The end result would be a parallel, Node.js version of the git repository.

Probably quite a few details to get right, but I don’t foresee any major obstacles.

1 Like

You can certainly convert your TW into tiddlers using the node.js SaveWikiFolderCommand. Then track everything in /tiddlers using git add . . You may also want to track your tiddlywiki.info file, and your local plugins directory, if you make one.

I have one project where I have the node version on the master branch. The master branch then generates the standalone html version, which is sent to the gh-pages branch for publication.

1 Like

Cool, thanks for taking the time to explain.

@Sii keep in mind it is quite simple to move content between wikis, you could build any type you want and bring over your content. On file/node versions you may want to install plugins differently but this is not necessary when its purpose is a single wiki.