Reinforced Learning

Tips and tricks we've picked up along the way.

Olio Apps

Automatic Code Formatting for Partially-Staged Files

GitAutomatic Formatting

Automatic Code Formatting for Partially-Staged Files

I wrote git-format-staged to apply an automatic code formatter or linter to staged files. It ignores unstaged changes, and leaves those changes unstaged. When run in a Git pre-commit hook git-format-staged guarantees that committed files are formatted properly, and does not clobber unstaged changes if formatting cannot be applied to working tree files cleanly.

Jesse Hallett

Software Engineer

Interested in working with us?