All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] send-pull-request: Use current date in mail headers
@ 2010-12-20 18:50 Darren Hart
  2010-12-20 18:50 ` [PATCH 1/1] " Darren Hart
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Darren Hart @ 2010-12-20 18:50 UTC (permalink / raw)
  To: poky; +Cc: Josh Lock

This series was sent using the updated send-pull-request script. See
PATCH 1/1 for details.

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: dvhart/git-pull
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dvhart/git-pull

Thanks,
    Darren Hart <dvhart@linux.intel.com>
---


Darren Hart (1):
  send-pull-request: Use current date in mail headers

 scripts/send-pull-request |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] send-pull-request: Use current date in mail headers
  2010-12-20 18:50 [PATCH 0/1] send-pull-request: Use current date in mail headers Darren Hart
@ 2010-12-20 18:50 ` Darren Hart
  2010-12-21 10:52   ` Joshua Lock
  2010-12-20 19:33 ` [PATCH 0/1] " Gary Thomas
  2010-12-21 20:59 ` Saul Wold
  2 siblings, 1 reply; 5+ messages in thread
From: Darren Hart @ 2010-12-20 18:50 UTC (permalink / raw)
  To: poky; +Cc: Josh Lock

Some users experience problems viewing the pull requests as a sequential
mail series due to the script using the git commit date for the patches
and today's date for the cover letter.

Address this by renaming the email Date: header to Old-Date: and adding
a new Date: header with a current timestamp.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Reported-by: Gary Thomas <gary@mlbassoc.com>
Cc: Josh Lock <josh@linux.intel.com>
---
 scripts/send-pull-request |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/send-pull-request b/scripts/send-pull-request
index 0576a5d..03a78f9 100755
--- a/scripts/send-pull-request
+++ b/scripts/send-pull-request
@@ -118,7 +118,11 @@ if [ "$cont" == "y" ] || [ "$cont" == "Y" ]; then
         # 
         # Use tail to remove the email envelope from git or formail as
         # msmtp (sendmail) would choke on them.
-        cat $PATCH | formail -I "To: $TO" -I "CC: $CC" | tail -n +2 | sendmail -t
+        #
+        # Modify the patch date for sequential delivery, but retain the
+        # original date as "Old-Date".
+        DATE=$(date +"%a, %d %b %Y %k:%M:%S %z")
+        cat $PATCH | formail -I "To: $TO" -I "CC: $CC" -i "Date: $DATE" | tail -n +2 | sendmail -t
         if [ $? -eq 1 ]; then
             ERROR=1
         fi
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/1] send-pull-request: Use current date in mail headers
  2010-12-20 18:50 [PATCH 0/1] send-pull-request: Use current date in mail headers Darren Hart
  2010-12-20 18:50 ` [PATCH 1/1] " Darren Hart
@ 2010-12-20 19:33 ` Gary Thomas
  2010-12-21 20:59 ` Saul Wold
  2 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2010-12-20 19:33 UTC (permalink / raw)
  To: Darren Hart; +Cc: poky, Josh Lock

On 12/20/2010 11:50 AM, Darren Hart wrote:
> This series was sent using the updated send-pull-request script. See
> PATCH 1/1 for details.
>
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>    Branch: dvhart/git-pull
>    Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dvhart/git-pull
>
> Thanks,
>      Darren Hart<dvhart@linux.intel.com>
> ---
>
>
> Darren Hart (1):
>    send-pull-request: Use current date in mail headers
>
>   scripts/send-pull-request |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)

Much better, thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] send-pull-request: Use current date in mail headers
  2010-12-20 18:50 ` [PATCH 1/1] " Darren Hart
@ 2010-12-21 10:52   ` Joshua Lock
  0 siblings, 0 replies; 5+ messages in thread
From: Joshua Lock @ 2010-12-21 10:52 UTC (permalink / raw)
  To: poky

On Mon, 2010-12-20 at 10:50 -0800, Darren Hart wrote:
> Some users experience problems viewing the pull requests as a sequential
> mail series due to the script using the git commit date for the patches
> and today's date for the cover letter.
> 
> Address this by renaming the email Date: header to Old-Date: and adding
> a new Date: header with a current timestamp.
> 
> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
> Reported-by: Gary Thomas <gary@mlbassoc.com>
> Cc: Josh Lock <josh@linux.intel.com>

Acked-by: Joshua Lock <josh@linux.intel.com>

> ---
>  scripts/send-pull-request |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/send-pull-request b/scripts/send-pull-request
> index 0576a5d..03a78f9 100755
> --- a/scripts/send-pull-request
> +++ b/scripts/send-pull-request
> @@ -118,7 +118,11 @@ if [ "$cont" == "y" ] || [ "$cont" == "Y" ]; then
>          # 
>          # Use tail to remove the email envelope from git or formail as
>          # msmtp (sendmail) would choke on them.
> -        cat $PATCH | formail -I "To: $TO" -I "CC: $CC" | tail -n +2 | sendmail -t
> +        #
> +        # Modify the patch date for sequential delivery, but retain the
> +        # original date as "Old-Date".
> +        DATE=$(date +"%a, %d %b %Y %k:%M:%S %z")
> +        cat $PATCH | formail -I "To: $TO" -I "CC: $CC" -i "Date: $DATE" | tail -n +2 | sendmail -t
>          if [ $? -eq 1 ]; then
>              ERROR=1
>          fi

-- 
Joshua Lock
        Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/1] send-pull-request: Use current date in mail headers
  2010-12-20 18:50 [PATCH 0/1] send-pull-request: Use current date in mail headers Darren Hart
  2010-12-20 18:50 ` [PATCH 1/1] " Darren Hart
  2010-12-20 19:33 ` [PATCH 0/1] " Gary Thomas
@ 2010-12-21 20:59 ` Saul Wold
  2 siblings, 0 replies; 5+ messages in thread
From: Saul Wold @ 2010-12-21 20:59 UTC (permalink / raw)
  To: Darren Hart; +Cc: poky, Josh Lock

On 12/20/2010 10:50 AM, Darren Hart wrote:
> This series was sent using the updated send-pull-request script. See
> PATCH 1/1 for details.
>
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>    Branch: dvhart/git-pull
>    Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dvhart/git-pull
>
> Thanks,
>      Darren Hart<dvhart@linux.intel.com>
> ---
>
>
> Darren Hart (1):
>    send-pull-request: Use current date in mail headers
>
>   scripts/send-pull-request |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
Merged into Master

Thanks
   Sau!


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-21 20:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-20 18:50 [PATCH 0/1] send-pull-request: Use current date in mail headers Darren Hart
2010-12-20 18:50 ` [PATCH 1/1] " Darren Hart
2010-12-21 10:52   ` Joshua Lock
2010-12-20 19:33 ` [PATCH 0/1] " Gary Thomas
2010-12-21 20:59 ` Saul Wold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.