Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ pub enum Command {
/// Visualize active worktrees as a commit DAG (alias: sl)
///
/// Lists every active worktree, the commits it adds on top of its base
/// branch, and (in later releases) PR/CI/review state. Issue #245.
/// branch, and its GitHub PR/CI/review state when available. Issue #245.
#[command(alias = "sl")]
Smartlog {
/// Maximum commits per worktree (default: 10)
Expand Down
10 changes: 10 additions & 0 deletions tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,16 @@ fn test_history_log_export_empty() {
// parsec smartlog / sl (issue #245, #305)
// ---------------------------------------------------------------------------

#[test]
fn test_smartlog_help_describes_shipped_overlay() {
parsec()
.args(["smartlog", "--help"])
.assert()
.success()
.stdout(predicate::str::contains("GitHub PR/CI/review state"))
.stdout(predicate::str::contains("in later releases").not());
}

/// `parsec smartlog` in a repo with no active worktrees should exit 0 and
/// print the "No active worktrees" placeholder message.
#[test]
Expand Down
Loading