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

Re: [PATCH] git-send-email.perl: Add sendmail aliases support

From
Junio C Hamano <gitster@pobox.com>
Date
May 21, 2015, 21:19 UTC
Message-ID
<xmqq617liq6l.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAJ80satMSCGydLRb5k=xpSqxXSBL=_T7nsHEz3jsuFV9MdmmtA@mail.gmail.com>
Allen Hubbe <allenbh@gmail.com> writes:
Show 11 quoted lines
> The diff doesn't show enough context to include this comment:
>
> my %parse_alias = (
>         # multiline formats can be supported in the future
> ...
>
> I can't be sure the author's intent, but my interpretation is such.
> The parsers do not support multiline, even though the format might
> allow it by definition.  Another interpretation could be, no multiline
> formats allowed, or, the first person to add a multiline format should
> remove this comment.
I think that comment were only meant to apply to the first one, mutt.
In any case, you should read it this way:
    Some formats may support multi-line; this parser back when the
    comment was written did not support an alias file that uses such
    a feature, but it is OK to make it support them in the future. 

After all, these subs are slurping from $fh and doing the parsing themselves, so they are free to do multi-line if they wanted to. It's not like there is a calling function that feeds input line by line after splitting a logically continued line into two (and if that were the case, supporting multi-line format may become harder or even impossible).

And as I said, it is OK not to support ones that have folded lines.

All I was saying was that we should not SILENTLY fail or do a wrong thing when we find something we do not support.

Previous: Allen Hubbe
Message 8 of 8 in “git-send-email.perl: Add sendmail aliases support”
  1. git-send-email.perl: Add sendmail aliases supportAllen Hubbe, May 21, 2015
  2. Junio C HamanoMay 21, 2015
  3. Allen HubbeMay 21, 2015
  4. Eric SunshineMay 21, 2015
  5. Allen HubbeMay 21, 2015
  6. Junio C HamanoMay 21, 2015
  7. Allen HubbeMay 21, 2015
  8. Junio C HamanoMay 21, 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.