mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Subject: Re: [ptxdist] [PATCH] git-ptx-patches: add --notes to git-format-patch if it's supported
Date: Wed, 06 Mar 2013 22:21:06 +0100	[thread overview]
Message-ID: <5137B342.1060905@pengutronix.de> (raw)
In-Reply-To: <1362600041-13179-1-git-send-email-u.kleine-koenig@pengutronix.de>


[-- Attachment #1.1: Type: text/plain, Size: 1574 bytes --]

On 03/06/2013 09:00 PM, Uwe Kleine-König wrote:
> While at it also document minimal git version needed for --no-signature.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  scripts/git-ptx-patches | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/scripts/git-ptx-patches b/scripts/git-ptx-patches
> index 37f5d91..fadb2c1 100755
> --- a/scripts/git-ptx-patches
> +++ b/scripts/git-ptx-patches
> @@ -110,10 +110,17 @@ case "$remove_old" in
>  		;;
>  esac
>  
> +# git-format-patch --notes is supported since git 1.7.2

?

>  if git format-patch -h 2>&1 | grep -q signature; then
>  	GIT_EXTRA_ARGS="--no-signature"
>  fi
>  
> +# git-format-patch --notes is supported since git 1.7.6, but actually you want
> +# git 1.8.1-rc0 to get the notes below the --- marker
> +if man git-format-patch | grep -q -e --notes; then

Why don't we use the same mechanism (either man or -h) to figure out if
git supports the extra agrument?

> +	GIT_EXTRA_ARGS="$GIT_EXTRA_ARGS --notes"
> +fi
> +
>  cat .ptxdist/series.0 > .ptxdist/series
>  git format-patch -N $GIT_EXTRA_ARGS ${tagopt} -o .ptxdist/patches/ ${range} | sed -e 's,^.ptxdist/patches/,,' > .ptxdist/series.auto
>  cat .ptxdist/series.auto >> .ptxdist/series

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2013-03-06 21:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 20:00 Uwe Kleine-König
2013-03-06 21:21 ` Marc Kleine-Budde [this message]
2013-03-06 21:54   ` Uwe Kleine-König
2013-03-07 16:07     ` Michael Olbrich
2013-03-11  8:55       ` [ptxdist] [PATCH v2] " Uwe Kleine-König

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=5137B342.1060905@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=u.kleine-koenig@pengutronix.de \
    /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