On Mon, Apr 28, 2014 at 10:11 PM, <tsaund...@mozilla.com> wrote:

> 2014-04-28  Trevor Saunders  <tbsau...@mozilla.com>
>
>         * mklog: if in a git checkout try to get name and email from git.
> ---
>  contrib/mklog | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/contrib/mklog b/contrib/mklog
> index fb489b0..5f5d98e 100755
> --- a/contrib/mklog
> +++ b/contrib/mklog
> @@ -38,6 +38,20 @@ $gcc_root = $0;
>  $gcc_root =~ s/[^\\\/]+$/../;
>  chdir $gcc_root;
>
> +# if this is a git tree then take name and email from the git configuration
> +if (-d .git) {

I would probably use git config directly here. It would work with both
git and svn checkouts (if you have a global .git configuration). But
testing for .git is fine with me as well.

I like Peter's idea of having a ~/.mklog file to override. This would
work for both svn and git checkouts.


Diego.

Reply via email to