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

feat: add stage_fixed option #445

Merged
merged 3 commits into from Mar 15, 2023

Conversation

mrexox
Copy link
Member

@mrexox mrexox commented Mar 14, 2023

Closes #64 #109

⚡ Summary

This PR adds stage_fixed option to commands and scripts. By default its value is false.

It calls git add <files> for every command/script in pre-commit hook if specified.

<files> are either replaced {files} template or {staged_files} if files option wasn't specified. All filters are applied (glob, exclude). For scripts it's always just the content of {staged_files}.

  • Add stage_fixed option
  • Add tests
  • Update docs

@mrexox mrexox marked this pull request as ready for review March 15, 2023 08:06
@mrexox mrexox changed the title Add stage_fixed option feat: add stage_fixed option Mar 15, 2023
@mrexox mrexox merged commit 1ea9571 into evilmartians:master Mar 15, 2023
@mrexox mrexox deleted the feat/add-stage_fixed-option branch March 15, 2023 08:06
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.

Feature Request: Automatic git add
1 participant