Why Nostr? What is Njump?
2024-06-21 22:35:16

npub1us…8tra8 on Nostr: commit bad8826211ca2eb8660e4bd68b292d14616d3669 Author: fiatjaf <[email protected]> ...

commit bad8826211ca2eb8660e4bd68b292d14616d3669
Author: fiatjaf <[email protected]>
Date: Wed Apr 24 18:44:36 2024 -0300

nip34: simplify `r` tag for earliest unique commit.

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
["web", "<url for browsing>", ...], // a webpage url, if the git server being used provides such a thing
["clone", "<url for git-cloning>", ...], // a url to be given to `git clone` so anyone can clone it
["relays", "<relay-url>", ...] // relays that this repository will monitor for patches and issues
- ["earliest-unique-commit", "<commit-id>"] // usually root commit but a recent commit for forks
- ["r", "<earliest-unique-commit-id>"] // so clients can subscribe to all events related to a local git repo
+ ["r", "<earliest-unique-commit-id>", "euc"]
["maintainers", "<other-recognized-maintainer>", ...]
]
}
@@ -32,13 +31,15 @@ Git repositories are hosted in Git-enabled servers, but their existence can be a

The tags `web`, `clone`, `relays`, `maintainers` can have multiple values.

+The `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.
+
Except `d`, all tags are optional.

## Patches

Patches 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.

-Patches in a patch set SHOULD include a NIP-10 `e` `reply` tag pointing to the previous patch.
+Patches in a patch set SHOULD include a NIP-10 `e` `reply` tag pointing to the previous patch.

The first patch revision in a patch revision SHOULD include a NIP-10 `e` `reply` to the original root patch.

@@ -132,7 +133,7 @@ Root Patches and Issues have a Status that defaults to 'Open' and can be set by
["e", "<applied-or-merged-patch-event-id>", "", "mention"], // for each
// when merged
["merge-commit", "<merge-commit-id>"]
- ["r", "<merge-commit-id>"]
+ ["r", "<merge-commit-id>"]
// when applied
["applied-as-commits", "<commit-id-in-master-branch>", ...]
["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

The Status event with the largest created_at date is valid.

-The 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.
+The 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.


## Possible things to be added later
Author Public Key
npub1us5sx2ak5nmdc0uamf24pyvz95f5kp5c2avwheuj8ph4ykagf55qq8tra8