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

feature: Skip unstaged changes for pre-commit hook #402

Conversation

mrexox
Copy link
Member

@mrexox mrexox commented Dec 16, 2022

⚡ Summary

  • Refactor runner.go to be more readable
  • Add pre- and post-run handlers
  • Stash unstaged changes for pre-commit hook before running the hook and unstash them after

For reference:

@mrexox mrexox force-pushed the feature/stage-changed-files-skip-unstaged-changes branch from b651bba to b688631 Compare February 7, 2023 07:28
@mrexox mrexox marked this pull request as ready for review February 22, 2023 07:59
Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
@mrexox mrexox force-pushed the feature/stage-changed-files-skip-unstaged-changes branch from 1d211d5 to f72e4fd Compare February 22, 2023 08:00
@mrexox mrexox changed the title Stage changed files skip unstaged changes Skip unstaged changes for pre-commit hook Feb 22, 2023
@mrexox mrexox changed the title Skip unstaged changes for pre-commit hook feature: Skip unstaged changes for pre-commit hook Feb 22, 2023
@mrexox mrexox merged commit 802de54 into evilmartians:master Feb 22, 2023
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.

1 participant