Skip to content

add function to stage modified files #2

Merged
gumaz merged 1 commit into
masterfrom
stage-modified
Jan 27, 2025
Merged

add function to stage modified files #2
gumaz merged 1 commit into
masterfrom
stage-modified

Conversation

@gumaz
Copy link
Copy Markdown
Owner

@gumaz gumaz commented Jan 27, 2025

What

Add function to stage modified file so that scalafmtAll does not appear as failed

Why

Git pre-commit hook is failing when sbt scalafmtAll modifies files, even though the command itself exits successfully (exit code 0). This likely happens because git expects the working directory to be clean after the pre-commit hook runs. If scalafmtAll modifies any files, git sees uncommitted changes and fails the commit.

@gumaz gumaz merged commit bc1f57b into master Jan 27, 2025
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