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

Re: [PATCH v2 0/3] send-email: teach git send-email mode to translate aliases

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 14, 2024, 16:54 UTC
Message-ID
<xmqq34n711uy.fsf@gitster.g>
In-Reply-To
<20240813-jk-translate-alias-send-email-v2-0-912db4eb6846@gmail.com>
Jacob Keller <jacob.e.keller@intel.com> writes:
Show 27 quoted lines
> The b4 program has its own "b4 send" utility for sending a patch series. It
> is similar in many respects to git send-email. Currently, it lacks support
> for processing aliases, which makes switching between git send-email and b4
> send somewhat annoying.
>
> It would be convenient if b4 (or other programs interacting with git) could
> make use of git send-email's alias file support.
>
> Teach git send-email a new --translate-aliases option, which enables a new
> mode for git send-email. When executed with this option, git send-email
> will read standard input and convert each input according to the configured
> alias file. The resulting address will be output to standard out.
>
> I also considered implementing a new "full" format for --dump-aliases which
> would dump the entire alias file along with its configured email addresses.
> I ended up dropping that change as I felt that it would be less usable than
> the translation feature.
>
> Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
> ---
> Changes in v2:
> - Use standard input instead of command line arguments
> - Link to v1: https://lore.kernel.org/r/20240808-jk-translate-alias-send-email-v1-0-10a03b3d6b06@gmail.com
>
> ---
> Jacob Keller (3):
>       t90001-send-email.sh: fix quoting for mailrc --dump-aliases test

Nobody noticed the typo in the filename since the previous iteration was posted?

Show 12 quoted lines
>       t9001-send-email.sh: update alias list used for pine test
>       send-email: teach git send-email option to translate aliases
>
>  Documentation/git-send-email.txt |   7 +++
>  git-send-email.perl              |  21 ++++++-
>  t/t9001-send-email.sh            | 118 +++++++++++++++++++++++++++++++++++++--
>  3 files changed, 139 insertions(+), 7 deletions(-)
> ---
> base-commit: 406f326d271e0bacecdb00425422c5fa3f314930
> change-id: 20240808-jk-translate-alias-send-email-1ce048643e5d
>
> Best regards,
Previous: Jacob KellerNext: Jacob Keller
Message 8 of 13 in “send-email: teach git send-email mode to translate aliases”
  1. 0/3 send-email: teach git send-email mode to translate aliasesJacob Keller, Aug 14, 2024
  2. 1/3 t90001-send-email.sh: fix quoting for mailrc --dump-aliases testJacob Keller, Aug 14, 2024
  3. Junio C HamanoAug 14, 2024
  4. 3/3 send-email: teach git send-email option to translate aliasesJacob Keller, Aug 14, 2024
  5. 2/3 t9001-send-email.sh: update alias list used for pine testJacob Keller, Aug 14, 2024
  6. Junio C HamanoAug 14, 2024
  7. Jacob KellerAug 14, 2024
  8. Junio C HamanoAug 14, 2024
  9. Jacob KellerAug 14, 2024
  10. Junio C HamanoAug 14, 2024
  11. Konstantin RyabitsevAug 15, 2024
  12. Junio C HamanoAug 15, 2024
  13. Keller, Jacob EAug 15, 2024

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.