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

Re: [PATCH] Don't add To: recipients to the Cc: header

From
SOSergei Organov <osv@javad.com>
Date
Nov 26, 2007, 18:29 UTC
Message-ID
<8763zoq2rs.fsf@osv.gnss.ru>
In-Reply-To
<7v3autgd8q.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 16 quoted lines
> Sergei Organov <osv@javad.com> writes:
>
>>> GNU folks even managed to insert text that allows a completely empty
>>> line (not a line with a single SP on it) to express a context line
>>> that is empty, which means...
>>
>> Really? That's a surprise for me. What I can tell for sure, Emacs' diff
>> mode doesn't support this, as it does interpret plain empty line as a
>> hunk delimiter, at least in Emacs 22.1.
>
> See b507b465f7831612b9d9fc643e3e5218b64e5bfa (git-apply: prepare for
> upcoming GNU diff -u format change).  Around the time that eventually
> lead to this commit (mid October 2006) there was a discussion on this
> mailing list on the issue, too.  I do not doubt you checked with your
> version of Emacs diff mode that it does not support this yet, but it's
> only prudent to assume that a new version someday will.
Thanks, -- it was interesting to read corresponding discussions.

Due to this change in GNU diff, it seems that empty line is indeed a wrong choice for syntactic hunk separator :( I wonder if there is a common way to say "here the patch ends" then[1]? My best guess is that

===
will do.

[1] I've checked bzr and hg. Bzr uses empty line for that (followed by "# Begin bundle" line) in their "merge directive" format. Not Emacs-friendly either :( Hg's "export" just EOFs after the patch.

-- 
Sergei.
Previous: Junio C Hamano
Message 14 of 14 in “Don't add To: recipients to the Cc: header”
  1. Don't add To: recipients to the Cc: headerAsk Bjørn Hansen, Nov 19, 2007
  2. Ask Bjørn HansenNov 19, 2007
  3. Junio C HamanoNov 20, 2007
  4. Ask Bjørn HansenNov 20, 2007
  5. Junio C HamanoNov 20, 2007
  6. Sergei OrganovNov 20, 2007
  7. Junio C HamanoNov 20, 2007
  8. Sergei OrganovNov 23, 2007
  9. Junio C HamanoNov 23, 2007
  10. Sergei OrganovNov 23, 2007
  11. Junio C HamanoNov 23, 2007
  12. Sergei OrganovNov 26, 2007
  13. Junio C HamanoNov 26, 2007
  14. Sergei OrganovNov 26, 2007

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.