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

Re: GNU patch close to next stable release (2)

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 1, 2012, 17:58 UTC
Message-ID
<7v8vdyfqa9.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAHpGcM+DkL_CCisCjF9m0j3NRJUNAdfL05T0cfLjLfVORQHrpw@mail.gmail.com>
Andreas Grünbacher <agruen@gnu.org> writes:
> * Support for double-quoted filenames in the "diff --git" format: when a
>   filename starts with a double quote, it is interpreted as a C string
>   literal.  The escape sequences \\, \", \a, \b, \f, \n, \r, \t, \v, and \ooo
>   (a three-digit octal number between 0 and 255) are recognized.

Is this also available in non-git diffs? IIRC, this extension to allow funny characters in pathnames was proposed by and discussed with Paul Eggert (listed as one of GNU diffutils maintainers at www.gnu.org/software/diffutils/) and git happened to adopt it earlier than "GNU diff" itself did.

I found it a bit odd to see this listed as one of the items needed to support "diff --git" oddity.

Previous: Andreas GrünbacherNext: Andreas Grünbacher
Message 2 of 5 in “GNU patch close to next stable release (2)”
  1. Andreas GrünbacherAug 1, 2012
  2. Junio C HamanoAug 1, 2012
  3. Andreas GrünbacherAug 2, 2012
  4. Paul EggertAug 2, 2012
  5. Jim MeyeringAug 2, 2012

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.