From daeb9127764fc9dd469294f755e277fdfca09a00 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 10 Jun 2026 00:07:56 +0200 Subject: rtree: add support for multiple URLs per remote This requires changing the index format, which I'm using as an opportunity to: - move from YAML to JSON (so I can maybe kill the YAML parser dependency at some point) - move the index file into standard XDG paths --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index cba0e8d..ca363c9 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ There are a few other subcommands in `rtree`: * `rtree each ` executes the given command in each repository. My most common usecase is `rtree each git status --short`. * `rtree import ` takes a path to a local Git repo, and moves it to the correct place below `$GOPATH/src`. -Finally, `rtree index` rebuilds the index file (`~/.rtree/index.yaml`) that all of these operations use to find repos +Finally, `rtree index` rebuilds the index file (`~/.config/rtree/index.json`) that all of these operations use to find repos and remotes. If a repo is checked out, but not yet indexed, the index entry will be added. If the repo for an index entry is missing, the user will be prompted about what to do: @@ -104,4 +104,4 @@ repository /x/src/github.com/Masterminds/sprig has been deleted ``` One of the intended usecases is that stuff below `$GOPATH/src` does not need to be backed up. As long as the index file -`~/.rtree/index.yaml` is backed up, all repos can be restored in one step with `yes r | rtree index`. +`~/.config/rtree/index.json` is backed up, all repos can be restored in one step with `yes r | rtree index`. -- cgit v1.3.1