Gitkeep, the little Rust tool I originally wrote to keep a local copy of a coupl...

@TheQuinbox@dragonscave.space

Gitkeep, the little Rust tool I originally wrote to keep a local copy of a couple GitHub profiles, is now at version 0.4.0, including support for gitea, forgejo, and GitLab, and many other things. Complete changelog, by version, since I last posted about it here:

0.4.0
  • Added a per-host SSH setting. The first time you add something from a new host, gitkeep asks whether to clone from it over SSH; set use_ssh under that host in the config to change it later
  • Fixed a repo with no clone URL of the chosen kind being silently skipped. It's now reported as a failure
  • gitkeep size now shows just the total by default. Pass --breakdown to also list each account's size.
  • Repos are now cloned and pulled, and account listings fetched, several at a time (one per CPU thread, between 4 and 16), which makes big syncs several times faster. Change it with gitkeep sync -j <N> or jobs = <N> in the config
0.3.1
  • A relative archive directory in the config is now relative to your home directory instead of wherever gitkeep is run from
  • Fixed gitkeep remove user/repo not offering to delete the local copy of an individually tracked repo
  • Fixed the unauthenticated mode warning being printed more than once per command
  • gitkeep add now prints one combined summary when adding accounts and individual repos together
  • gitkeep remove <owner> no longer asks before untracking the repos you track individually under it, only before deleting them
  • gitkeep remove now also removes the owner, group, and host directories that deleting the last repo under them leaves empty
0.3.0
  • A failed clone or pull now shows git's own error message
  • add and remove now accept user/a,b,c to name several repos from one owner
  • Added Forgejo support, which also covers Gitea and Codeberg. Repos are added by URL, the same way as GitLab
  • Added GitLab support: gitkeep add <url> tracks a group (including subgroups), users, or single projects on any GitLab instance. GitLab archives live under <host>/<namespace>/<project>; remove, sync, and list accept the host-qualified host/namespace/project form or the full URL
  • Added per-host tokens in the config for accessing private GitLab and Forgejo repos
  • Fixed an archive directory starting with ~ being created as a folder literally named ~ in the current directory instead of under your home directory
  • gitkeep init now saves a relative archive directory as an absolute path, so the archive no longer depends on where gitkeep is run from
  • gitkeep sync <targets> now syncs only the named accounts and repos, including frozen ones
  • Removed gitkeep skip, unskip, and prune. Run gitkeep remove user/repo to leave a repo under a tracked account out of future syncs (with --delete to also delete its local copy), and gitkeep add user/repo to bring it back. Existing skipped repos carry over automatically

Get it with cargo install gitkeep or at github.com/trypsynth/gitkeep/r