Skip to content

feat: compare with origin/main by default - #11

Merged
raszi merged 2 commits into
mainfrom
feat/default-origin-main
Nov 13, 2026
Merged

raszi merged 2 commits into
mainfrom
feat/default-origin-main

Conversation

@raszi

@raszi raszi commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Compare the branch with origin/main by default. A local main can be old, and then the tool also lists the files that changed on main.

  • Use origin/main if changed.defaultBranch is not set. --base still overrides it.
  • Stop reading init.defaultBranch. That setting only names the first branch of a new repository.
  • Fail with an error if origin/main does not exist. New scenarios test this case and an old local main.
  • Remove the README part about changed.defaultBranch origin/main, because it is the default now.
  • Add a Motivation section, an Alternatives section, and more examples to the README.

@raszi raszi changed the title Compare with origin/main by default feat: compare with origin/main by default Nov 13, 2026
@raszi
raszi merged commit 22012f9 into main Nov 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant