git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git is not recognizing some merge conflicts and just accepting incoming master version

From
KKai <k.vongrambusch@googlemail.com>
Date
Mar 14, 2024, 10:30 UTC
Message-ID
<CA+XMOBuK1_BNqgQRfCne8dVXKGPt+iQ9wt4iZqz0PgEqZ5UCtg@mail.gmail.com>

I am encountering strange behavior when trying to merge master into a feature branch. Trying with guis VScode and Gitkraken, both are not displaying all conflicts in the files correctly and are just accepting some changes from master which are conflicts and break the code.

I am including two example files as well as screenshots.

In the first example, the conflict of the UseFormReturn type changing between the two versions of the file is not being recognized.

In the second example the useForm hook is completely different between master and the feature branch called hook-form, but no conflict is displayed.

Besides trying to merge the code in VScode and Gitkraken to rule out an issue with the editor, I also installed Git-2.41.0.3-64-bit.exe to make sure it is not a problem with Git-2.44.0-64-bit.exe I was using.

I am quite confused because this seems like a major issue that would not have gone unnoticed so long, but I also don't see what I could be doing wrong.

Ayn support would be much appreciated.

Example and screenshots: https://drive.google.com/file/d/1rUaoA1rCYFzaEYeQldTupinQde-AyRjv/view?usp=sharing

VSCode used:
Version: 1.87.2 (user setup)
Commit: 863d258
Datum: 2024-03-08T15:20:17.278Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
Betriebssystem: Windows_NT x64 10.0.22631
Next: Johannes Sixt
Message 1 of 8 in “Git is not recognizing some merge conflicts and just accepting incoming master version”
  1. KaiMar 14, 2024
  2. Johannes SixtMar 15, 2024
  3. KaiMar 15, 2024
  4. brian m. carlsonMar 15, 2024
  5. Johannes SixtMar 15, 2024
  6. Junio C HamanoMar 15, 2024
  7. KaiMar 16, 2024
  8. Thomas GuyotMar 23, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.