public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
To: gcc-patches@gcc.gnu.org
Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>,
	Diego Novillo <dnovillo@google.com>,
	Cary Coutant <ccoutant@gmail.com>
Subject: [PATCH] mklog: Fallback to env author name and addr
Date: Wed, 08 Apr 2015 19:37:00 -0000	[thread overview]
Message-ID: <1428521808-30487-1-git-send-email-rep.dot.nop@gmail.com> (raw)

contrib/ChangeLog:

2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* mklog ($name, $addr): Fallback to env author settings.
---
 contrib/mklog | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/mklog b/contrib/mklog
index f7974a7..4cad351 100755
--- a/contrib/mklog
+++ b/contrib/mklog
@@ -53,9 +53,9 @@ if (-f "$conf") {
 	    . $dot_mklog_format_msg;
     }
 } else {
-    $name = `git config user.name`;
+    $name = `git config user.name` || $ENV{GIT_AUTHOR_NAME};
     chomp($name);
-    $addr = `git config user.email`;
+    $addr = `git config user.email` || $ENV{GIT_AUTHOR_EMAIL};
     chomp($addr);
 
     if (!($name && $addr)) {
-- 
2.1.4

             reply	other threads:[~2015-04-08 19:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 19:37 Bernhard Reutner-Fischer [this message]
2015-04-08 19:45 ` Diego Novillo
2015-04-08 20:04   ` Bernhard Reutner-Fischer

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=1428521808-30487-1-git-send-email-rep.dot.nop@gmail.com \
    --to=rep.dot.nop@gmail.com \
    --cc=ccoutant@gmail.com \
    --cc=dnovillo@google.com \
    --cc=gcc-patches@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).