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

Add support for inverting/negating match #29

Merged
merged 2 commits into from
Sep 27, 2018
Merged

Add support for inverting/negating match #29

merged 2 commits into from
Sep 27, 2018

Conversation

kevinoid
Copy link
Owner

Using the --invert-match (a la grep) or --not option.

As requested in #28.

So that the caller can check that the current branch is not an undesired
branch.

Fixes: #28

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
This is easier to remember and works well grammatically with the command
name.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
@kevinoid kevinoid mentioned this pull request Sep 26, 2018
@codecov-io
Copy link

codecov-io commented Sep 26, 2018

Codecov Report

Merging #29 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
+ Coverage   98.01%   98.11%   +0.09%     
==========================================
  Files           2        2              
  Lines         101      106       +5     
==========================================
+ Hits           99      104       +5     
  Misses          2        2
Impacted Files Coverage Δ
bin/git-branch-is.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0528438...1ba1ae9. Read the comment docs.

Copy link

@jsardev jsardev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinoid kevinoid merged commit fb8c313 into master Sep 27, 2018
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.

3 participants