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

merge-file doc: set conflict-marker-size attribute #1895

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

Conversation

phillipwood
Copy link

Grepping around I can't find any other files with conflict markers without this attribute set. (If there were I think my pre-commit hook would have complained about them as well)

When committing a conflict resolution for a merge containing
1f010d6 (doc: use .adoc extension for AsciiDoc files, 2025-01-20)
my pre-commit hook failed because "git diff --check" thought there was
a left over conflict marker in "merge-file.adoc". Fix this by setting
the "conflict-marker-size" attribute as we do for all the other
documentation files that contain example conflict markers.

Signed-off-by: Phillip Wood <[email protected]>
@phillipwood
Copy link
Author

/submit

Copy link

gitgitgadget bot commented Mar 28, 2025

Submitted as [email protected]

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git/ pr-1895/phillipwood/merge-file-doc-attributes-v1

To fetch this version to local tag pr-1895/phillipwood/merge-file-doc-attributes-v1:

git fetch --no-tags https://github.com/gitgitgadget/git/ tag pr-1895/phillipwood/merge-file-doc-attributes-v1

Copy link

gitgitgadget bot commented Mar 29, 2025

This patch series was integrated into seen via git@62e7eca.

@gitgitgadget gitgitgadget bot added the seen label Mar 29, 2025
Copy link

gitgitgadget bot commented Mar 29, 2025

On the Git mailing list, Junio C Hamano wrote (reply to this):

"Phillip Wood via GitGitGadget" <[email protected]> writes:

> From: Phillip Wood <[email protected]>
>
> When committing a conflict resolution for a merge containing
> 1f010d6bdf7 (doc: use .adoc extension for AsciiDoc files, 2025-01-20)
> my pre-commit hook failed because "git diff --check" thought there was
> a left over conflict marker in "merge-file.adoc". Fix this by setting
> the "conflict-marker-size" attribute as we do for all the other
> documentation files that contain example conflict markers.
>
> Signed-off-by: Phillip Wood <[email protected]>
> ---
>     merge-file doc: set conflict-marker-size attribute
>     
>     Grepping around I can't find any other files with conflict markers
>     without this attribute set. (If there were I think my pre-commit hook
>     would have complained about them as well)

Well spotted.  "git grep -n '^<<<<<<<'" tells me that the
git-merge-file, git-merge, and user-manual require them, but this
was a rather old line dating back from 2008, so it is a bit
surprising nobody caught it before.

Will queue.  Thanks.

Copy link

gitgitgadget bot commented Apr 1, 2025

This branch is now known as pw/custom-conflict-marker-size-for-merge-related-docs.

Copy link

gitgitgadget bot commented Apr 1, 2025

This patch series was integrated into seen via git@365b094.

Copy link

gitgitgadget bot commented Apr 7, 2025

There was a status update in the "New Topics" section about the branch pw/custom-conflict-marker-size-for-merge-related-docs on the Git mailing list:

"git-merge-file" documentation source, which has lines that look
like conflict markers, lacked custom conflict marker size defined,
which has been corrected..

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

Copy link

gitgitgadget bot commented Apr 7, 2025

This patch series was integrated into seen via git@5017d37.

Copy link

gitgitgadget bot commented Apr 7, 2025

This patch series was integrated into next via git@281b720.

@gitgitgadget gitgitgadget bot added the next label Apr 7, 2025
Copy link

gitgitgadget bot commented Apr 8, 2025

This patch series was integrated into seen via git@989a018.

Copy link

gitgitgadget bot commented Apr 8, 2025

This patch series was integrated into seen via git@281b720.

Copy link

gitgitgadget bot commented Apr 8, 2025

This patch series was integrated into seen via git@27d23a7.

Copy link

gitgitgadget bot commented Apr 11, 2025

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

Copy link

gitgitgadget bot commented Apr 11, 2025

There was a status update in the "Cooking" section about the branch pw/custom-conflict-marker-size-for-merge-related-docs on the Git mailing list:

"git-merge-file" documentation source, which has lines that look
like conflict markers, lacked custom conflict marker size defined,
which has been corrected..

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

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