Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable git branch #15

Merged
merged 4 commits into from Feb 6, 2018

Conversation

Projects
None yet
2 participants
@timdouglas
Copy link
Contributor

commented Feb 5, 2018

Defines a --branch switch so that user can specify a branch to use in merge-base other than master. Defaults to master if not specified.

README.md Outdated
@@ -72,6 +72,10 @@ In `package.json`'s `"scripts"` section, add:

Pre-commit mode. Under this flag only staged files will be formatted, and they will be re-staged after formatting.

### `--branch`

When in `staged` pre-commit mode, use this flag to compare changes with the specified branch. Defaults to `master` branch.

This comment has been minimized.

Copy link
@azz

azz Feb 5, 2018

Owner

Shouldn't this read "When not in staged "?

This comment has been minimized.

Copy link
@timdouglas

timdouglas Feb 6, 2018

Author Contributor

Ah, yes, yes it should! I'll update.

Tim Douglas

@azz azz merged commit 420fdec into azz:master Feb 6, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@azz

This comment has been minimized.

Copy link
Owner

commented Feb 6, 2018

🎉 Thanks for your contribution! It will be released automatically as 1.3.0 in the next few minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.