@andreimaxim/git-xor
v0.0.5
Published
git-xor CLI
Downloads
174
Readme
git-xor
git-xor is a git extension that compares two branches maintained via cherry-picks. It finds
commits unique to each side by matching on subject line + file overlap, then reports
the results as ticket URLs.
When installed, it's available as git xor because git automatically discovers
executables named git-<name> on $PATH.
[!NOTE] This project was built with the help of LLMs. All code is reviewed and vouched for by a human maintainer before merging. See Contributing for details.
Installation
npm install -g @andreimaxim/git-xorUsage
git xor <our-branch> <their-branch> [--ticket-pattern 'PROJ-\d+'] \
[--ticket-url 'https://jira.example.com/browse/{ticket}']our-branchandtheir-branchare branch names (matching git domain language)--ticket-patternand--ticket-urlare optional; they can also be set in gitconfig- If neither flag nor gitconfig is set, the ticket report section is skipped
gitconfig
For simpler interactions, you can add the ticket pattern or ticket URL to the .git/config file
in the project repo:
git config xor.ticket-pattern 'PROJ-\d+'
git config xor.ticket-url 'https://jira.example.com/browse/{ticket}'This produces an [xor] section in your .git/config:
[xor]
ticket-pattern = PROJ-\\d+
ticket-url = https://jira.example.com/browse/{ticket}Contributing
This project uses Vouch to manage contributor trust.
New contributors must be vouched for by a maintainer before their issues or PRs are accepted.
The vouched contributors list lives in .github/VOUCHED.td.
Development
npm install
npm test
npm run check # lint + format