Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Simplify release file management

fdd0b3e8373da4c684c73d88f997c3917966ac50 · Keenan Nemetz · 17d ago · parent c5187449

Simplify release file management

Drop rename and move from the CLI and browser, outline the files table instead of wrapping it in a card, and label the release-page action Manage files.

cmd/vole/release.go −3

@@ -29,7 +29,6 @@ var releaseGroup = &group{
29 29 Subs: []subcommand{
30 30 {Name: "create", Synopsis: "release create <tag> (-m <text> | -F <file|->)", Flags: []string{"message", "file"}, Notes: []string{"Writes the annotated tag in the current repository; push it with `git push --follow-tags`. The notes and attached files stay editable afterwards unless a channel targets the release."}},
31 31 {Name: "attach", Synopsis: "release attach <tag> <file-or-directory>... [--remote <name>]", Flags: []string{"remote"}, Notes: []string{"Uploads each file, or each regular file under a directory, over SSH and records it as a path under `releases/<tag>/` on the metadata branch. A directory keeps its relative paths, so a package layout survives. Nothing is published until the pointer is pushed, so attach after `git push --follow-tags`, not before."}},
32 {Name: "move", Synopsis: "release move <tag> <path> <new-path> [--remote <name>]", Flags: []string{"remote"}, Notes: []string{"Renames or moves one attached file. Only the path under `releases/<tag>/` changes; the bytes stay in the shared object store. The destination must not already be attached, and a file cannot move under a path that is a file or over a path that is a directory."}},
33 32 {Name: "remove", Synopsis: "release remove <tag> <path>... [--remote <name>]", Flags: []string{"remote"}, Notes: []string{"Removes attached files from a release by deleting their pointers on the metadata branch. The bytes become collectable after the garbage collector's grace period; the release notes and source are untouched."}},
34 33 {Name: "channel set", Synopsis: "release channel set <name> <tag> (-m <text> | -F <file|->) [--remote <name>]", Flags: []string{"message", "file", "remote"}, Notes: []string{"Points a mutable channel at an annotated tag. The channel name stays; the release it names is frozen until the channel points at another one."}},
35 34 {Name: "channel list", Synopsis: "release channel list [--remote <name>]", Flags: []string{"remote"}, Notes: []string{"Prints every channel and whether its target is still an annotated tag with the recorded object id."}},
@@ -52,8 +51,6 @@ func cmdRelease(args []string) error {
52 51 return cmdReleaseCreate(args[1:])
53 52 case "attach":
54 53 return cmdReleaseAttach(args[1:])
55 case "move", "mv", "rename":
56 return cmdReleaseMove(args[1:])
57 54 case "remove", "rm", "delete":
58 55 return cmdReleaseRemove(args[1:])
59 56 case "channel":