From d179f9c2529e9e3152bcf5ac6e8be491dfce2260 Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Thu, 28 Jan 2021 20:41:52 +0100 Subject: Add `git-email-get-address-function' variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it possible for users to use their own function to get the “to” address. This could also be used for integration with piem.el. * doc/git-email.org (Sending email): Add bullet point. * git-email.el (git-email-get-to-address-function): Add variable. (git-email--get-to-address): Add function. (git-email--compose-email): Call the relevant function. --- doc/git-email.org | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/git-email.org b/doc/git-email.org index 8a8c343..84b1d23 100644 --- a/doc/git-email.org +++ b/doc/git-email.org @@ -94,6 +94,11 @@ You can see all the customizable variables running =M-x customize-group= - =git-email-get-files-functions= is a list of functions to run to get a list of patches to send. The default, there is already support for dired, ibuffer and vc-dir. + +- =git-email-get-to-address-function= is a function that returns the + “to” address for a message. The default function runs =git config + --list= to get the address, this will not work unless you are in a + git repository. ** Format patches - =git-email-format-patch-default-args= is a string of arguments to give -- cgit v1.2.3