summaryrefslogtreecommitdiff
path: root/tests/tissue.scm
diff options
context:
space:
mode:
authorArun Isaac2022-07-13 00:33:23 +0530
committerArun Isaac2022-07-13 01:40:08 +0530
commit887b608122b660ab5df3f89784af5511497b4872 (patch)
treefb88b523f9244d7b8a6aa347b261d1bc412098aa /tests/tissue.scm
parent3d0dcdd2358b7373506b7928ef32761a80b3fbf9 (diff)
downloadtissue-887b608122b660ab5df3f89784af5511497b4872.tar.gz
tissue-887b608122b660ab5df3f89784af5511497b4872.tar.lz
tissue-887b608122b660ab5df3f89784af5511497b4872.zip
issue: Move <issue> posts slot into <file-document>.
We move the posts slot of <issue> into the <file-document> parent class as a commits slot. We also no longer store the creator, created-date, last-updater, last-updated-date of <issue> in slots. Rather, we compute them on-demand from the commits slot. * tissue/file-document.scm: Import (rnrs hashtables), (srfi srfi-1), (srfi srfi-26), (git), (tissue commit) and (tissue person). (<file-document>)[commits]: New slot. (file-document-creator, file-document-created-date, file-document-last-updater, file-document-last-updated-date): New public functions. (read-gemtext-document): Initialize commits slot. * tissue/issue.scm (file-modification-table-for-current-repository): Move to (tissue file-document). (<issue>)[creator, created-date, last-updater, last-updated-date, posts]: Delete slots. (<post>): Delete class. (document-term-generator, print, print-issue-to-gemtext, document->sxml): Use file-document-creator, file-document-created-date, file-document-last-updater, file-document-last-updated-date and file-document-commits instead of issue-creator, issue-created-date, issue-last-updater, issue-last-updated-date and issue-posts. (read-gemtext-issue): Use read-gemtext-document. Do not initialize creator, created-date, last-updater and last-updated-date slots.
Diffstat (limited to 'tests/tissue.scm')
0 files changed, 0 insertions, 0 deletions