Applying Fixes Locally

When Restyled runs, it captures the style fixing commits it makes by running git format-patch <base>. The patch is then printed in the logs in a copy/paste-able way:

{ base64 -d - | git am; } <<'EOM'
...
...
...
EOM

Will apply Restyled’s fixes directly to your local checkout.

This process even preserves all metadata about the commits: timestamp, message, and Restyled as author.

FAQ #

Why is this useful? #

This feature enables the following workflow:

This workflow is available in all scenarios, though it’s particularly useful when Restyled is run on a Fork, where it’s unable to make sibling PRs. But anyone who finds this easier should take advantage!