Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: ZAR – A new archive format with history, deduplication, encryption (opens external site)

44 points by brmmm3 1 day ago | github.com | 28 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. Currently you can only set the last commit for viewing/extracting the contents. The idea is that you can go back in history and always see the full contents up to the selected commit. Original idea was to be able to do updates in the archive very quickly without the need for rewriting/recompressing the whole archive.

    Your idea is a complete different use case, but interesting and not too complicated to implement. Next version will support:

    - Select first and last commit

    - Select commits by commit name, where name ca be an fnmatch filter. So you can select for example all commits which are related to mail with "mail*"

    Replies (1)
    1. I was imagining completely separate commit chains which can't spoil eachother. I guess your idea boils down to more or less the same or a similar thing but I see several disadvantages, e.g. that commit names (and other metadata) must be file-unique (as opposed to slot-unique), and accessing commits of a certain slot via filtering would always require to traverse the whole archive's commit chain. The upside is you don't have to introduce a potential change to the file format. I like the filtering idea and would welcome it on top, but not as a solution to what I had in mind. To me they are related but not the same thing.