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

allow ignoring unknown files + tests #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AubreyHewes
Copy link

@AubreyHewes AubreyHewes commented Sep 7, 2016

allow ignoring unknown files...

a project may contain files that are not ready to be committed (unknown; not yet git added).. this lets you npm-bump even if your project contains unknown files...

Current logic was to break on any output from git status -s .. This change allows execution when the files start with ?? (unknown files; not yet added)..

I had to change some stuff to be able to create tests... As there are not any tests I did not want to refactor the module for easier/normal test support. I have only done the bare minimum to create tests that support the change...

A possible todo is to add a prompt confirming you want to ignore these files.. or just mention the unknown files...

@AubreyHewes AubreyHewes force-pushed the dev-allow_ignoring_unknown_files branch 2 times, most recently from 14c6072 to 7dcf5e7 Compare September 7, 2016 21:12
@AubreyHewes AubreyHewes force-pushed the dev-allow_ignoring_unknown_files branch from 7dcf5e7 to 8887c17 Compare September 7, 2016 21:47
@mgol
Copy link
Owner

mgol commented Oct 19, 2016

This seems like it could be done if a file is truly untracked (I don't think we could do it for tracked changed files because of all git resets that are invoked etc.). This seems to introduce some risk, though so I'd like to first setup some test infrastructure for this project (a hard requirement before bumping the version to 0.1.0). This is tracked in #9.

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