{"thread":{"id":"66494","subject":"[BUG] git diff go mad compared to diffutils","startedAt":"2026-10-09T02:38:08Z","lastAt":"2026-10-09T02:38:08Z","messageCount":1,"participants":["David Yang"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"554547","messageId":"CAAXyoMPJ1P6RCRQgPpZwZjFZJW8Y07paXJD3=8LXtD3KuVnWnQ@mail.gmail.com","threadId":"66494","inReplyTo":null,"subject":"[BUG] git diff go mad compared to diffutils","fromName":"David Yang","fromEmail":"mmyangfl@gmail.com","sentAt":"2026-10-09T02:38:08Z","receivedAt":"2026-10-09T02:38:08Z","isPatch":false,"sender":{"key":"mmyangfl@gmail.com","avatar":null},"body":"Hello Git community,\n\nI'm using git 2.53.0 on Debian testing. During preparing a new version\nfor https://lore.kernel.org/all/20261001204851.2576101-3-mmyangfl@gmail.com/\n, I've noticed git generated unusual distorted patch\nhttps://github.com/yangfl/linux/commit/01e2de4664f60528dd9b4f15b5995fc5cb0e7b4f\n. As you may see, GitHub diff is distorted as well.\n\nWith diffutils 3.12 (diff -u old new) I can get nice diff file with\ndelection only, just like the v2 patch.\n\nShould this be considered a bug?\n\nThanks\n\n"}]}