git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Sixt <j.sixt@viscovery.net>
To: Jay Soffian <jaysoffian@gmail.com>
Cc: git@vger.kernel.org, Junio C Hamano <junio@kernel.org>
Subject: Re: [PATCH v2] am: gather GIT_AUTHOR_* from original commit when rebasing
Date: Wed, 16 Jun 2010 08:30:53 +0200	[thread overview]
Message-ID: <4C186F9D.1060608@viscovery.net> (raw)
In-Reply-To: <1276641564-2074-1-git-send-email-jaysoffian@gmail.com>

Am 6/16/2010 0:39, schrieb Jay Soffian:
> +	if test -f "$dotest/original-commit"
> +	then
> +		original_commit="$(cat "$dotest/original-commit")"
> +		GIT_AUTHOR_NAME="$(GIT_PAGER='' git log --format=%an -1 "$original_commit")"
> +		GIT_AUTHOR_EMAIL="$(GIT_PAGER='' git log --format=%ae -1 "$original_commit")"
> +		GIT_AUTHOR_DATE="$(GIT_PAGER='' git log --format=%aD -1 "$original_commit")"

I think you can use the function get_author_ident_from_commit() for this.
See git-sh-setup.

-- Hannes

  reply	other threads:[~2010-06-16  6:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-15 22:39 [PATCH v2] am: gather GIT_AUTHOR_* from original commit when rebasing Jay Soffian
2010-06-16  6:30 ` Johannes Sixt [this message]
2010-06-16  7:12   ` [PATCH v3] am: use get_author_ident_from_commit instead of mailinfo " Jay Soffian
2010-06-16 19:06     ` Junio C Hamano

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=4C186F9D.1060608@viscovery.net \
    --to=j.sixt@viscovery.net \
    --cc=git@vger.kernel.org \
    --cc=jaysoffian@gmail.com \
    --cc=junio@kernel.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).