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

Stash before executing #77

Open
akshitkrnagpal opened this issue May 25, 2018 · 0 comments
Open

Stash before executing #77

akshitkrnagpal opened this issue May 25, 2018 · 0 comments

Comments

@akshitkrnagpal
Copy link

akshitkrnagpal commented May 25, 2018

This may be kind of a feature request.

Current situation
The most basic use of this is to check linting using eslint,jslint etc.
But let's consider I added (git add) a few changes. Then I try git commit. There are some errors in the code it tells me and does not let me commit.

I fix the errors and try git commit again. It checks and let me commit because I fixed the errors. But I forgot to do git add afterwards.

Linting will check the latest file (fixed files) but git commit will commit the old changes only.

PS - I know this is a job for the developer to be careful. But if everyone was careful we won't be needing this anyway.

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

No branches or pull requests

1 participant