Skip to content

feat: add --path CLI flag - #102

Open
aduh95 wants to merge 7 commits into
mainfrom
extra-git-log-flags
Open

aduh95 wants to merge 7 commits into
mainfrom
extra-git-log-flags

Conversation

@aduh95

@aduh95 aduh95 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

It can be useful to filter E.g. only changes that touch deps/: branch-diff … --paths="deps/"

Comment thread branch-diff.js Resolved
@rvagg

rvagg commented Nov 21, 2026

Copy link
Copy Markdown
Member

is this important? do you have an active use-case for it now that's causing problems? one issue here is that it's really easy to come up with a flag that changes git output and breaks all the assumptions of the data collection, pretty big footgun that's hard to report useful errors about; perhaps there's a less generalised solution to the problem you're trying to solve?

@aduh95

aduh95 commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

My current process is to modify the source to add the -- deps/, which is fine but not very elegant. The use case is to reduce the scope of the search to avoid getting rate limited when dealing with older release lines

@rvagg

rvagg commented Nov 28, 2026

Copy link
Copy Markdown
Member

I reckon you should just add a --path=deps/, repeatable so you can do many, then append after -- <path> in the cmd, then we have the safety and the functionality.

@aduh95 aduh95 changed the title feat: add --extra-git-log-flags CLI flag feat: add --paths CLI flag Nov 28, 2026
@aduh95

aduh95 commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

N.B.: the added tests were generated by a coding agent

Comment thread branch-diff.js Resolved
@aduh95 aduh95 changed the title feat: add --paths CLI flag feat: add --path CLI flag Nov 30, 2026
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