Add subscription API
The git format has changed, you can migrate old snapshots by running this:
function migrateOldSnapshot(snapshot) {
return {
refs: {
branch: {
value: snapshot.refs.branch,
},
heads: snapshot.refs.heads,
},
commits: snapshot.stores.commit,
trees: snapshot.stores.tree,
};
}