hoarder icon indicating copy to clipboard operation
hoarder copied to clipboard

Archive git repositories via `git clone`

Open PowerUser64 opened this issue 1 year ago • 2 comments

Describe the feature you'd like

It would be really cool if Hoarder could download a copy of a git repository as a way of archiving the code and its history.

Describe the benefits this would bring to existing Hoarder users

This would make it easy to store source code archives as part of a personal archive.

Can the goal of this request already be achieved via other means?

As far as I'm aware, this is not possible through other means (within Hoarder, that is).

It might be possible to archive a specific version of a repository by saving a direct link to a tarball (or similar) of a release that sites like github have, but that won't get anything like the commit history of the repository.

Have you searched for an existing open/closed issue?

  • [x] I have searched for existing issues and none cover my fundamental request

PowerUser64 avatar Apr 02 '25 06:04 PowerUser64

libgit2 seems like a decent pick, which also has WASM binaries for JS (https://github.com/petersalomonsen/wasm-git). However I'm not exactly sure if the repos active or not

haappi avatar Apr 26 '25 13:04 haappi

I have a first draft implementation on my branch (https://github.com/maya-doshi/karakeep/tree/feature/git-archive) which works mostly well enough for me. although, it uses the system git (like yt-dlp is used)

@haappi does it have a change of getting merged, ill polish it up if so

maya-doshi avatar Nov 03 '25 21:11 maya-doshi