upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2024-04-24 18:44:36 -0300
committerfiatjaf_ <fiatjaf@gmail.com>2024-04-29 14:37:40 -0300
commitbad8826211ca2eb8660e4bd68b292d14616d3669 (patch)
tree99ac4a73e1aca014eebd447613aef082580a4a9a
parent243b2865826edff22eebe5ec6e893c711802c7e5 (diff)
nip34: simplify `r` tag for earliest unique commit.
-rw-r--r--34.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/34.md b/34.md
index f72fcf2..03ee039 100644
--- a/34.md
+++ b/34.md
@@ -23,8 +23,7 @@ Git repositories are hosted in Git-enabled servers, but their existence can be a
23 ["web", "<url for browsing>", ...], // a webpage url, if the git server being used provides such a thing 23 ["web", "<url for browsing>", ...], // a webpage url, if the git server being used provides such a thing
24 ["clone", "<url for git-cloning>", ...], // a url to be given to `git clone` so anyone can clone it 24 ["clone", "<url for git-cloning>", ...], // a url to be given to `git clone` so anyone can clone it
25 ["relays", "<relay-url>", ...] // relays that this repository will monitor for patches and issues 25 ["relays", "<relay-url>", ...] // relays that this repository will monitor for patches and issues
26 ["earliest-unique-commit", "<commit-id>"] // usually root commit but a recent commit for forks 26 ["r", "<earliest-unique-commit-id>", "euc"]
27 ["r", "<earliest-unique-commit-id>"] // so clients can subscribe to all events related to a local git repo
28 ["maintainers", "<other-recognized-maintainer>", ...] 27 ["maintainers", "<other-recognized-maintainer>", ...]
29 ] 28 ]
30} 29}
@@ -32,13 +31,15 @@ Git repositories are hosted in Git-enabled servers, but their existence can be a
32 31
33The tags `web`, `clone`, `relays`, `maintainers` can have multiple values. 32The tags `web`, `clone`, `relays`, `maintainers` can have multiple values.
34 33
34The `r` tag annotated with the `"euc"` marker should be the commit ID of the earliest unique commit of this repo, made to identify it among forks and group it with other repositories hosted elsewhere that may represent essentially the same project. In most cases it will be the root commit of a repository. In case of a permanent fork between two projects, then the first commit after the fork should be used.
35
35Except `d`, all tags are optional. 36Except `d`, all tags are optional.
36 37
37## Patches 38## Patches
38 39
39Patches can be sent by anyone to any repository. Patches to a specific repository SHOULD be sent to the relays specified in that repository's announcement event's `"relays"` tag. Patch events SHOULD include an `a` tag pointing to that repository's announcement address. 40Patches can be sent by anyone to any repository. Patches to a specific repository SHOULD be sent to the relays specified in that repository's announcement event's `"relays"` tag. Patch events SHOULD include an `a` tag pointing to that repository's announcement address.
40 41
41Patches in a patch set SHOULD include a NIP-10 `e` `reply` tag pointing to the previous patch. 42Patches in a patch set SHOULD include a NIP-10 `e` `reply` tag pointing to the previous patch.
42 43
43The first patch revision in a patch revision SHOULD include a NIP-10 `e` `reply` to the original root patch. 44The first patch revision in a patch revision SHOULD include a NIP-10 `e` `reply` to the original root patch.
44 45
@@ -132,7 +133,7 @@ Root Patches and Issues have a Status that defaults to 'Open' and can be set by
132 ["e", "<applied-or-merged-patch-event-id>", "", "mention"], // for each 133 ["e", "<applied-or-merged-patch-event-id>", "", "mention"], // for each
133 // when merged 134 // when merged
134 ["merge-commit", "<merge-commit-id>"] 135 ["merge-commit", "<merge-commit-id>"]
135 ["r", "<merge-commit-id>"] 136 ["r", "<merge-commit-id>"]
136 // when applied 137 // when applied
137 ["applied-as-commits", "<commit-id-in-master-branch>", ...] 138 ["applied-as-commits", "<commit-id-in-master-branch>", ...]
138 ["r", "<applied-commit-id>"] // for each 139 ["r", "<applied-commit-id>"] // for each
@@ -142,7 +143,7 @@ Root Patches and Issues have a Status that defaults to 'Open' and can be set by
142 143
143The Status event with the largest created_at date is valid. 144The Status event with the largest created_at date is valid.
144 145
145The Status of a patch-revision defaults to either that of the root-patch, or `1632` (Closed) if the root-patch's Status is `1631` and the patch-revision isn't tagged in the `1631` event. 146The Status of a patch-revision defaults to either that of the root-patch, or `1632` (Closed) if the root-patch's Status is `1631` and the patch-revision isn't tagged in the `1631` event.
146 147
147 148
148## Possible things to be added later 149## Possible things to be added later