Switch language한국어
Back to the list

Patch applies fake diffs from commit messages | Hacker News

TL;DR AI

Key summary

2 min read
  1. Hacker News discussion highlights a parsing quirk in git-am: unindented diffs embedded in commit messages can be treated as real patches.

  2. GNU patch is more flexible, recognizing additional formatting such as indented diffs and RFC 934 encapsulation.

  3. The difference can lead to unintended changes or inconsistent patch application across tools and systems.

  4. The issue matters for developers and distributors working with emailed, embedded, or copy-pasted patches.

Read the original