From 2f2819cc2365be07fedfd35ab3654b3607e29e76 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 10:58:37 +0000 Subject: add `ngit account whoami` command Shows currently logged-in account(s) with name and npub. When both a local (repo-scoped) and global account are configured, displays both with local marked as active. Supports --json (returns local, global, and active objects each with name, npub, nip05, scope) and --offline (reads from cache only, no network). Fixes doc_markdown clippy warning in cli.rs. --- CHANGELOG.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 37200c9..182fb6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- `ngit account whoami` — show the currently logged-in account(s) - `ngit pr` subcommand group: `list`, `view`, `checkout`, `apply`, `send`, `close`, `reopen`, `ready`, `comment`, `merge`; replaces the former top-level `ngit list`, `ngit checkout`, and `ngit apply` commands (hard-migrated); `ngit send` remains at the top level unchanged - `ngit pr view ` — view a PR with its full details and all comments (author, timestamp, body) in chronological order - `ngit pr close ` / `ngit pr reopen ` — change PR status (author or maintainer only) @@ -143,7 +144,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - **Pull Requests Support**: Introduced complete PR functionality for large contributions that would be too big for relays as patches: - - Generate PR events for oversized patches automatically - Support PR updates and PR as patch revision - List open/draft proposals on repo relays/servers as `pr/*` branches and all proposals as `refs/pr/*` and `refs/pr/pr-by-id/head` @@ -154,12 +154,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **NIP-22 Status Events Support**: Read and process NIP-22 style status events for proposals and PRs - **ngit sync command**: New command to synchronize git servers with nostr state - - Optional `--force` flag for forced synchronization eg deleting refs on non-GRASP servers - `--ref-name` parameter to limit sync to a single reference - **ngit init improvements** (simple model for non-grasp servers): - - Use user's grasp list for defaults instead of hardcoded options - List and allow selection/deselection of non-grasp servers - Check and fetch origin refs when missing locally -- cgit v1.2.3