diff mbox

[U-Boot] patman: Explain how to make doc/git-mailrc work

Message ID 1412390436-28564-1-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Oct. 4, 2014, 2:40 a.m. UTC
Add an explanation for how to set up git so that patman can find the alias
file. Fix up the get_maintainers message too.

Reported-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/patman/README | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Comments

Simon Glass Oct. 10, 2014, 2:57 a.m. UTC | #1
On 3 October 2014 20:40, Simon Glass <sjg@chromium.org> wrote:
> Add an explanation for how to set up git so that patman can find the alias
> file. Fix up the get_maintainers message too.
>
> Reported-by: Scott Wood <scottwood@freescale.com>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  tools/patman/README | 13 ++++++++-----
>  1 file changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/tools/patman/README b/tools/patman/README
> index e466886..7d039e8 100644
> --- a/tools/patman/README
> +++ b/tools/patman/README
> @@ -52,12 +52,15 @@ will get a consistent result each time.
>  How to configure it
>  ===================
>
> -For most cases of using patman for U-Boot development, patman will
> -locate and use the file 'doc/git-mailrc' in your U-Boot directory.
> -This contains most of the aliases you will need.
> +For most cases of using patman for U-Boot development, patman can use the
> +file 'doc/git-mailrc' in your U-Boot directory to supply the email aliases
> +you need. To make this work, tell git where to find the file by typing
> +this once:
>
> -For Linux the 'scripts/get_maintainer.pl' handles figuring out where
> -to send patches pretty well.
> +    git config sendemail.aliasesfile doc/git-mailrc
> +
> +For both Linux and U-Boot the 'scripts/get_maintainer.pl' handles figuring
> +out where to send patches pretty well.
>
>  During the first run patman creates a config file for you by taking the default
>  user name and email address from the global .gitconfig file.
> --
> 2.1.0.rc2.206.gedb03e5
>

Applied to u-boot-x86/patman
diff mbox

Patch

diff --git a/tools/patman/README b/tools/patman/README
index e466886..7d039e8 100644
--- a/tools/patman/README
+++ b/tools/patman/README
@@ -52,12 +52,15 @@  will get a consistent result each time.
 How to configure it
 ===================
 
-For most cases of using patman for U-Boot development, patman will
-locate and use the file 'doc/git-mailrc' in your U-Boot directory.
-This contains most of the aliases you will need.
+For most cases of using patman for U-Boot development, patman can use the
+file 'doc/git-mailrc' in your U-Boot directory to supply the email aliases
+you need. To make this work, tell git where to find the file by typing
+this once:
 
-For Linux the 'scripts/get_maintainer.pl' handles figuring out where
-to send patches pretty well.
+    git config sendemail.aliasesfile doc/git-mailrc
+
+For both Linux and U-Boot the 'scripts/get_maintainer.pl' handles figuring
+out where to send patches pretty well.
 
 During the first run patman creates a config file for you by taking the default
 user name and email address from the global .gitconfig file.