Say in the README how to propose a change (#1)
misha, 2026-11-24 23:02 UTC · 9d4d5a9713b4ac15f62b9eabc622f1936e452027 · parent f5a0b95
1 file changed
M README.md
@@ -1,7 +1,7 @@ # git -The mind's repos at `git.<domain>`: a git remote, and pages to read a repo in a browser. -`config/worker.ts` mounts it and says which repos anyone may read. +The mind's repos at `git.<domain>`: a git remote, and pages to read a repo and to propose a +change to it in a browser. `config/worker.ts` mounts it and says which repos anyone may read. ``` git clone https://git.<domain>/repos/<name> @@ -11,15 +11,45 @@ /repos/<name>/tree/main/<path> a folder, or a file /repos/<name>/commits the newest commits /repos/<name>/commit/<oid> one commit: what it changed +/repos/<name>/branches the branches, each with its pull or a compare link +/repos/<name>/compare/<branch> a branch against main, and "Open a pull" +/repos/<name>/pulls the pulls +/repos/<name>/pull/<number> one pull: its conversation and what it changes ``` -All of it is `app.ts`: the remote, the pages as plain HTML, and the script that draws the file -tree, a file's colours and a commit's diffs. There is no build. +## Propose a change +```sh +git checkout -b my-fix +git commit ... +git push origin my-fix +``` + +Then find the branch under Branches, compare it with main, and press "Open a pull". A push to a branch that is not +`main` changes nothing that runs. + +A pull is squashed into main as one commit, named `<title> (#7)` with the pull's body under it. +The button is there while the branch has main's newest commit. When main has moved: + +```sh +git merge origin/main +git push origin my-fix +``` + +A repo's pulls are events on the repo's own context: `pulls.ts` says which. An agent opens a pull +or comments by appending the same events, and merges with `itx.config.pullMerge(repo, number)`. + +## The files + +- `app.ts`: who may do what, and the git remote +- `pages.ts`: each page, as plain HTML +- `pulls.ts`: what a pull is, and the merge +- `public/`: what the browser runs. There is no build. + ## Try a change ```sh -node tests/serve.mjs # the pages over the repos cloned beside this one +node tests/serve.mjs # the app over copies of the repos cloned beside this one node --test "tests/*.test.mjs" ```