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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression from #8 #10

Merged
merged 3 commits into from Jan 17, 2018

Conversation

Kocal
Copy link
Contributor

@Kocal Kocal commented Jan 17, 2018

Fix for #9.

Unfortunately I was not able to write a test (I don't have the time for 馃槤), but I directly tested my fix (with yarn link) and it's working as expected:

selection_033

@azz
Copy link
Member

azz commented Jan 17, 2018

Hi, thanks for the fix! I think this is actually a regression from #8, missing --diff-filter

https://github.com/azz/pretty-quick/blob/57f09b70e41476fa7696d5f20babea20c556ed71/src/scms/git.js#L30

Should be:

 ? getLines(runGit(directory, ['diff', '--name-only', '--cached', '--diff-filter=ACMRTUB', revision])) 

Could you update the PR with this change instead?

@Kocal
Copy link
Contributor Author

Kocal commented Jan 17, 2018

Oh, I didn't think about this.

Thanks, I'm updating my PR

@Kocal Kocal force-pushed the fix/error-when-staged-file-does-not-exist branch from 96bc7c3 to 6bf12a4 Compare January 17, 2018 10:49
Copy link
Member

@azz azz left a comment

Choose a reason for hiding this comment

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

Looks good, pending CI 馃槃

@azz azz merged commit 48073d8 into prettier:master Jan 17, 2018
@azz
Copy link
Member

azz commented Jan 17, 2018

Thanks for your PR!

@azz
Copy link
Member

azz commented Jan 17, 2018

https://github.com/azz/pretty-quick/releases/tag/v1.2.2

@Kocal Kocal changed the title Add 芦 fileExists 禄 filter Regression from #8 Jan 29, 2018
@Kocal Kocal deleted the fix/error-when-staged-file-does-not-exist branch December 20, 2018 21:39
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.

None yet

2 participants