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

doc: clarify the intent of the renormalize option in the merge machinery #1861

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

newren
Copy link

@newren newren commented Feb 10, 2025

The -X renormalize (or merge.renormalize config) option is intended to
reduce conflicts due to normalization of newer versions of history.  It
does so by renormalizing files that it is about to do a three-way
content merge on.  Some folks thought it would renormalize all files
throughout the tree, and the previous wording wasn't clear enough to
dispell that misconception.  Update the docs to make it clear that the
merge machinery will only apply renormalization to files which need a
three-way content merge.

(Technically, the merge machinery also does renormalization on
modify/delete conflicts, in order to see if the modification was merely
a normalization; if so, it can accept the delete and not report a
conflict.  But it's not clear that this piece needs to be explained to
users, and trying to distinguish it might feel like splitting hairs and
overcomplicating the explanation, so we leave it out.)

Signed-off-by: Elijah Newren <[email protected]>
@newren
Copy link
Author

newren commented Feb 11, 2025

/submit

Copy link

gitgitgadget bot commented Feb 11, 2025

Submitted as [email protected]

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git/ pr-1861/newren/clarify-renormalize-docs-v1

To fetch this version to local tag pr-1861/newren/clarify-renormalize-docs-v1:

git fetch --no-tags https://github.com/gitgitgadget/git/ tag pr-1861/newren/clarify-renormalize-docs-v1

Copy link

gitgitgadget bot commented Feb 11, 2025

This patch series was integrated into seen via git@0c9c979.

@gitgitgadget gitgitgadget bot added the seen label Feb 11, 2025
Copy link

gitgitgadget bot commented Feb 12, 2025

This patch series was integrated into seen via git@66dba55.

Copy link

gitgitgadget bot commented Feb 12, 2025

On the Git mailing list, Torsten Bögershausen wrote (reply to this):

On Tue, Feb 11, 2025 at 09:01:52PM +0000, Elijah Newren via GitGitGadget wrote:
> From: Elijah Newren <[email protected]>
>
> The -X renormalize (or merge.renormalize config) option is intended to
> reduce conflicts due to normalization of newer versions of history.  It
> does so by renormalizing files that it is about to do a three-way
> content merge on.  Some folks thought it would renormalize all files
> throughout the tree, and the previous wording wasn't clear enough to
> dispell that misconception.  Update the docs to make it clear that the
> merge machinery will only apply renormalization to files which need a
> three-way content merge.
>
> (Technically, the merge machinery also does renormalization on
> modify/delete conflicts, in order to see if the modification was merely
> a normalization; if so, it can accept the delete and not report a
> conflict.  But it's not clear that this piece needs to be explained to
> users, and trying to distinguish it might feel like splitting hairs and
> overcomplicating the explanation, so we leave it out.)
>
> Signed-off-by: Elijah Newren <[email protected]>
> ---
>     doc: clarify the intent of the renormalize option in the merge machinery
>
>     cf.
>     https://lore.kernel.org/git/CABPp-BGQ0pc=AZ0fdXcqDbhMLbm2xBvi71g0mXAVDagz19NkEg@mail.gmail.com/
>     and the thread there

My first impression after reading this:
Thanks, that makes sense.
The second one: Do we need to explain how a merge works here in this
part of the documenatation ?

The third round after re-reading and re-thinking:

Yes, this makes sense and lloks good.

Copy link

gitgitgadget bot commented Feb 12, 2025

User Torsten Bögershausen <[email protected]> has been added to the cc: list.

Copy link

gitgitgadget bot commented Feb 12, 2025

This branch is now known as en/doc-renormalize.

Copy link

gitgitgadget bot commented Feb 12, 2025

This patch series was integrated into seen via git@50a05b6.

Copy link

gitgitgadget bot commented Feb 13, 2025

This patch series was integrated into seen via git@1ec5006.

Copy link

gitgitgadget bot commented Feb 13, 2025

This patch series was integrated into next via git@2069f48.

@gitgitgadget gitgitgadget bot added the next label Feb 13, 2025
Copy link

gitgitgadget bot commented Feb 15, 2025

This patch series was integrated into seen via git@3b55445.

Copy link

gitgitgadget bot commented Feb 15, 2025

There was a status update in the "Cooking" section about the branch en/doc-renormalize on the Git mailing list:

Doc updates.

Will merge to 'master'.
source: <[email protected]>

Copy link

gitgitgadget bot commented Feb 19, 2025

This patch series was integrated into seen via git@ddc2d23.

Copy link

gitgitgadget bot commented Feb 19, 2025

There was a status update in the "Cooking" section about the branch en/doc-renormalize on the Git mailing list:

Doc updates.

Will merge to 'master'.
source: <[email protected]>

Copy link

gitgitgadget bot commented Feb 20, 2025

This patch series was integrated into seen via git@de6274b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant