Skip to content

Re-add the new files that have been commited #7

@addisoc

Description

@addisoc

Not sure if this project is still being maintained, but for me I copied the script over to the pre-commit script and it works almost exactly as I need. The only problem is that after the formatting is done the new changes are not committed and need to added again so to remedy this I added this line to the very end of the file.
git add $changed_java_files

Now when the pre-commit script runs it auto-formats the code and then commits the changes in the same commit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions