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

[PATCH] Git doesn't allow to apply a patch with empty filenames.

From
EDEvgen Druzhynin <evgen.druzhynin@gmail.com>
Date
Jul 6, 2015, 17:16 UTC
Message-ID
<1436202974-7624-1-git-send-email-evgen.druzhynin@gmail.com>

git-apply fails if '-p' option truncate at least one filename in patch to zero size. This solution tries to bring closer "git-apply" to standard Linux patch tool. Standard patch tool skip the truncated filenames and successfully applies patch.

Evgen Druzhynin (1):
  Added ability to scip patch hunk with an empty file.
 builtin/apply.c | 16 +++++-----------
 po/bg.po        | 15 ---------------
 po/ca.po        | 15 ---------------
 po/de.po        | 15 ---------------
 po/fr.po        | 15 ---------------
 po/git.pot      | 11 -----------
 po/it.po        | 11 -----------
 po/pt_PT.po     |  7 -------
 po/ru.po        | 12 ------------
 po/sv.po        | 16 ----------------
 po/vi.po        | 12 ------------
 po/zh_CN.po     | 11 -----------
 12 files changed, 5 insertions(+), 151 deletions(-)
-- 
1.9.1
Next: Evgen Druzhynin
Message 1 of 3 in “Git doesn't allow to apply a patch with empty filenames.”
  1. Git doesn't allow to apply a patch with empty filenames.Evgen Druzhynin, Jul 6, 2015
  2. Added ability to scip patch hunk with an empty filename.Evgen Druzhynin, Jul 6, 2015
  3. Junio C HamanoJul 6, 2015

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.