Skip to content

improvement: use clap idioms for diffr cli parse conflicts - #1038

Merged
sidkmenon merged 2 commits into
mainfrom
sm/diffr-first-word-wins
Oct 9, 2026
Merged

sidkmenon merged 2 commits into
mainfrom
sm/diffr-first-word-wins

Conversation

@sidkmenon

@sidkmenon sidkmenon commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

clanker note:

A command name after a diff flag stopped diffr with an error, so
`diffr --merge-base config` could not diff against a branch named config.
Now a command name is a command only as the first argument. Anywhere
else it is a revision or path, as Git reads it.

Tests: CLI tests.

@sidkmenon
sidkmenon added this pull request to stack #1041 October 8, 2026 19:06
@sidkmenon
sidkmenon force-pushed the sm/diffr-first-word-wins branch from ba897eb to 636191d Compare October 8, 2026 19:15
@sidkmenon sidkmenon changed the title sm/diffr first word wins improvement: use clap idioms for diffr cli parse conflicts Oct 8, 2026
@sidkmenon
sidkmenon marked this pull request as ready for review October 8, 2026 23:37
@sidkmenon
sidkmenon removed this pull request from stack #1041 October 8, 2026 23:43
@sidkmenon
sidkmenon added this pull request to stack #1050 October 8, 2026 23:44
A command name after a diff flag stopped diffr with an error, so
`diffr --merge-base config` could not diff against a branch named config.
Now a command name is a command only as the first argument. Anywhere
else it is a revision or path, as Git reads it.

Tests: CLI tests; git comparison tests, with a branch named config
after --merge-base.

Agent-Session: 01a11aca-5007-7b80-ad35-c0a0f746a05d
Agent-Session: ec5d2c35-3045-44f3-9c41-ba4378797c8e
Agent-Session: cbc75bbf-5438-46f4-b8ed-41beb0e20f0c
Agent-Session: 01a11cf1-8ad4-7910-b120-b0d622692a95
Agent-Session: 01a11ded-d896-7251-bf8f-c71bf07fd283
Agent-Session: 01a11e03-81df-7d63-bfa5-953f535444d2
It built a Git repository to check one clap attribute, and compared
against `git diff --merge-base`, which the cross test image's Git
predates, so it failed the musl job.

Claude-Session: https://claude.ai/code/session_01PX4PvPgXJGTXNUL6QyQa7i
Agent-Session: 01a11aca-5007-7b80-ad35-c0a0f746a05d
Agent-Session: cbc75bbf-5438-46f4-b8ed-41beb0e20f0c
Agent-Session: ec5d2c35-3045-44f3-9c41-ba4378797c8e
Agent-Session: 01a11cf1-8ad4-7910-b120-b0d622692a95
Agent-Session: 01a11ded-d896-7251-bf8f-c71bf07fd283
Agent-Session: 01a11e03-81df-7d63-bfa5-953f535444d2
@sidkmenon
sidkmenon force-pushed the sm/diffr-first-word-wins branch from d690e9a to badf445 Compare October 9, 2026 00:16
@sidkmenon
sidkmenon removed this pull request from stack #1050 October 9, 2026 00:16
@sidkmenon
sidkmenon merged commit ef33860 into main Oct 9, 2026
34 checks passed
@sidkmenon
sidkmenon deleted the sm/diffr-first-word-wins branch October 9, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants