From: Jacob Keller <jacob.e.keller@intel.com>
To: git@vger.kernel.org
Cc: Jacob Keller <jacob.keller@gmail.com>,
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Subject: [PATCH 0/3] send-email: teach git send-email mode to translate aliases
Date: Thu, 08 Aug 2024 14:09:57 -0700 [thread overview]
Message-ID: <20240808-jk-translate-alias-send-email-v1-0-10a03b3d6b06@gmail.com> (raw)
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 to interpret all remaining arguments as email aliases, translating
them according to the configured alias file. Output the translated email
addresses one per line.
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>
---
Jacob Keller (3):
t90001-send-email.sh: fix quoting for mailrc --dump-aliases test
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 | 17 ++++++-
t/t9001-send-email.sh | 103 ++++++++++++++++++++++++++++++++++++---
3 files changed, 120 insertions(+), 7 deletions(-)
---
base-commit: 406f326d271e0bacecdb00425422c5fa3f314930
change-id: 20240808-jk-translate-alias-send-email-1ce048643e5d
Best regards,
--
Jacob Keller <jacob.keller@gmail.com>
next reply other threads:[~2024-08-08 21:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-08 21:09 Jacob Keller [this message]
2024-08-08 21:09 ` [PATCH 1/3] t90001-send-email.sh: fix quoting for mailrc --dump-aliases test Jacob Keller
2024-08-08 21:09 ` [PATCH 2/3] t9001-send-email.sh: update alias list used for pine test Jacob Keller
2024-08-08 21:10 ` [PATCH 3/3] send-email: teach git send-email option to translate aliases Jacob Keller
2024-08-08 21:57 ` Junio C Hamano
2024-08-09 19:12 ` Jacob Keller
2024-08-09 19:27 ` Junio C Hamano
2024-08-09 19:51 ` Jacob Keller
2024-08-09 21:05 ` Junio C Hamano
2024-08-10 0:29 ` Jacob Keller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240808-jk-translate-alias-send-email-v1-0-10a03b3d6b06@gmail.com \
--to=jacob.e.keller@intel.com \
--cc=git@vger.kernel.org \
--cc=jacob.keller@gmail.com \
--cc=konstantin@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).