diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-03 13:08:56 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-04 12:48:37 +0000 |
| commit | a55d4150066456084fd18987acf014c18d0da976 (patch) | |
| tree | b6df894e60bb4fbc8854a76b8036b8a76922010b /src/bin/ngit/cli.rs | |
| parent | f91a0d00bafe2af1f6b6828c3de3d3e5d65153c3 (diff) | |
add nostr.repo-relay-only config to limit publishing to repo relays
Adds a git config key nostr.repo-relay-only that, when set to true, causes
nostr events to be sent only to the repository's own relays, skipping the
user's personal write relays and default/blaster relays. Useful for
repositories that should not broadcast to the maintainer's personal relay set.
Set persistently via \`git config nostr.repo-relay-only true\` or in one step
with \`ngit init --repo-relay-only\`.
Diffstat (limited to 'src/bin/ngit/cli.rs')
| -rw-r--r-- | src/bin/ngit/cli.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs index 164035b..68b18a7 100644 --- a/src/bin/ngit/cli.rs +++ b/src/bin/ngit/cli.rs | |||
| @@ -67,6 +67,9 @@ Or just for this repository: | |||
| 67 | 67 | ||
| 68 | Other useful settings: | 68 | Other useful settings: |
| 69 | - 'nostr.nostate true' to avoid publishing a state event when pushing to a nostr remote. | 69 | - 'nostr.nostate true' to avoid publishing a state event when pushing to a nostr remote. |
| 70 | - 'nostr.repo-relay-only true' to only publish nostr events to repo relays, skipping user and | ||
| 71 | default relays. Useful for repositories where you don't want to broadcast to your personal | ||
| 72 | relay set. Set via `git config nostr.repo-relay-only true` or `ngit init --repo-relay-only`. | ||
| 70 | - Login settings configured during `ngit account login`: | 73 | - Login settings configured during `ngit account login`: |
| 71 | - nostr.nsec - nsec or ncryptsec | 74 | - nostr.nsec - nsec or ncryptsec |
| 72 | - nostr.npub - used for ncryptsec and remote signer | 75 | - nostr.npub - used for ncryptsec and remote signer |