ent show: add --comments <N> flag to limit comment output #40
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
taproot-manufacturing/entomologist!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sigil-03/77edd8168c8ab9a0a4eef251dfff5e82"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Adds a --comments flag to ent show <ISSUE_ID> that limits comment output to the N most recent comments, similar to git log -n. Issues with long comment threads currently produce very long show output; this makes quick check-ins on recent discussion practical.
Changes
Single file: src/bin/ent/main.rs
133297788f361bb1eb10@ -56,0 +57,4 @@/// Only show the most recent N comments.#[arg(long)]comments: Option<u32>,This is a nitpick but i'd prefer if this argument (and the de-structured variable below) was named "--num-comments" (maybe with a short of "-n") to more clearly show what it does.
we can totally do that - i wasn't sure what to call it so this is what i landed on, but i'm not tied to it.