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

Re: Filename quoting / parsing problem

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Jan 6, 2010, 10:06 UTC
Message-ID
<m2eim3wns8.fsf@whitebox.home>
In-Reply-To
<7viqbgniq1.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 6 quoted lines
> So you can (and I think git-apply does) follow this simple rule:
>
>     If you see +++/---/rename from/rename to/new file/deleted file, use
>     the names you find there.  Otherwise, because there is no rename,
>     "diff --git" lines has two identical names that follow a/ and b/, so
>     use that name.
If you use diff.mnemonicprefix=true then a/ and b/ may be different.
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Junio C Hamano
Message 10 of 10 in “Filename quoting / parsing problem”
  1. Andreas GruenbacherJan 1, 2010
  2. Junio C HamanoJan 1, 2010
  3. Junio C HamanoJan 1, 2010
  4. Andreas GruenbacherJan 2, 2010
  5. Junio C HamanoJan 2, 2010
  6. Andreas GruenbacherJan 2, 2010
  7. Andreas GruenbacherJan 6, 2010
  8. Junio C HamanoJan 6, 2010
  9. Junio C HamanoJan 6, 2010
  10. Andreas SchwabJan 6, 2010

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.