MarcoIeni / cargo-assist

GitHub Action to automatically format Rust code and fix clippy lints.
Apache License 2.0
24 stars 0 forks source link

generate fixup commits instead of one big "format" commit #6

Open matthiasbeyer opened 10 months ago

matthiasbeyer commented 10 months ago

Hi.

Coming from this linkedin comment.

It would be nice if the tool would generate fixup commits (as in git commit --fixup <hash>) for individual commits on the PR'ed branch, so that a simple git rebase master -i --autosquash does automatically squash the formatting into the right commit, so that after the rebase all commits appear to be formatted.

MarcoIeni commented 10 months ago

I see. I didn't know about fixup. I would like to keep the current behavior the default. We can add a fixup flag that if true, behaves like you said. What do you think? Would you like to open a PR?