Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsflower: Make patches more reproducible between machines/developers #5407

Merged
merged 3 commits into from
Jun 10, 2022

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Jun 9, 2022

tools/tsflower: Normalize away Git version line from format-patch

When Chris today first made a change that called for refreshing
these patches, after the first few revisions to them had all been
done on my machine, we learned that git format-patch adds this
trailer line with the Git version, causing churn:
b202178bb
#5393 (comment)

Normalize that line so that it stops causing churn in the future.


tools/tsflower: Make patches reproducible across diff.interHunkContext

This was causing a small bit of churn (not as much as the
Git-version trailer) when going between patches generated on
my machine and on Chris's.

I think the value I have in my local config (and reflected
unintentionally in the first versions of these patches) tends to make
diffs a bit easier to read than the default, so go back to that.


tools/tsflower: Set diff.noprefix, to clean up patch format slightly

Since I'm looking at these diff config options, take the opportunity
to make this small cleanup.

gnprice added 3 commits June 10, 2022 10:14
When Chris today first made a change that called for refreshing
these patches, after the first few revisions to them had all been
done on my machine, we learned that `git format-patch` adds this
trailer line with the Git version, causing churn:
  zulip@b202178bb
  zulip#5393 (comment)

Normalize that line so that it stops causing churn in the future.
This was causing a small bit of churn (not as much as the
Git-version trailer) when going between patches generated on
my machine and on Chris's.

I think the value I have in my local config (and reflected
unintentionally in the first versions of these patches) tends to make
diffs a bit easier to read than the default, so go back to that.
Since I'm looking at these diff config options, take the opportunity
to make this small cleanup.
@chrisbobbe chrisbobbe force-pushed the pr-tsflower-reproducible-patches branch from 8712aef to 5373ba4 Compare June 10, 2022 14:19
@chrisbobbe chrisbobbe merged commit 5373ba4 into zulip:main Jun 10, 2022
@chrisbobbe
Copy link
Contributor

Thanks, LGTM! Merged.

@gnprice gnprice deleted the pr-tsflower-reproducible-patches branch June 10, 2022 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants