git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rebase-am: fix regression with new cover-letter config
@ 2013-04-14 22:27 Felipe Contreras
  2013-04-15  1:48 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Felipe Contreras @ 2013-04-14 22:27 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Felipe Contreras

If you have a cover-letter configuration set to anything other than
'false', 'git format-patch' might generate a cover letter, and 'git am'
doesn't seem to like that.

Ideally 'git am' should skip the cover-letter, but for now lets just fix
the regression.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 git-rebase--am.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-rebase--am.sh b/git-rebase--am.sh
index 97f31dc..f84854f 100644
--- a/git-rebase--am.sh
+++ b/git-rebase--am.sh
@@ -31,8 +31,8 @@ else
 	rm -f "$GIT_DIR/rebased-patches"
 
 	git format-patch -k --stdout --full-index --ignore-if-in-upstream \
-		--src-prefix=a/ --dst-prefix=b/ \
-		--no-renames $root_flag "$revisions" >"$GIT_DIR/rebased-patches"
+		--src-prefix=a/ --dst-prefix=b/ --no-renames --no-cover-letter \
+		$root_flag "$revisions" >"$GIT_DIR/rebased-patches"
 	ret=$?
 
 	if test 0 != $ret
-- 
1.8.2.1.643.ge3cc75d

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

* Re: [PATCH] rebase-am: fix regression with new cover-letter config
  2013-04-14 22:27 [PATCH] rebase-am: fix regression with new cover-letter config Felipe Contreras
@ 2013-04-15  1:48 ` Junio C Hamano
  2013-04-15  2:31   ` Felipe Contreras
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2013-04-15  1:48 UTC (permalink / raw)
  To: Felipe Contreras; +Cc: git

Felipe Contreras <felipe.contreras@gmail.com> writes:

> If you have a cover-letter configuration set to anything other than
> 'false', 'git format-patch' might generate a cover letter, and 'git am'
> doesn't seem to like that.
>
> Ideally 'git am' should skip the cover-letter, but for now lets just fix
> the regression.
>
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---

This is a follow-up to the fc/send-email-annotate topic, right?

You are mean to say "fix regression", which gave me a small heart
attack ;-).  I was worried if we had already merged it to 'next'.

As I already wrote in the recent "What's cooking", the series looks
good to me.  I am inclined to say that we should merge it (together
with this update) to 'next'.

Thanks for catching this before breaking the real world users.

>  git-rebase--am.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/git-rebase--am.sh b/git-rebase--am.sh
> index 97f31dc..f84854f 100644
> --- a/git-rebase--am.sh
> +++ b/git-rebase--am.sh
> @@ -31,8 +31,8 @@ else
>  	rm -f "$GIT_DIR/rebased-patches"
>  
>  	git format-patch -k --stdout --full-index --ignore-if-in-upstream \
> -		--src-prefix=a/ --dst-prefix=b/ \
> -		--no-renames $root_flag "$revisions" >"$GIT_DIR/rebased-patches"
> +		--src-prefix=a/ --dst-prefix=b/ --no-renames --no-cover-letter \
> +		$root_flag "$revisions" >"$GIT_DIR/rebased-patches"
>  	ret=$?
>  
>  	if test 0 != $ret

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

* Re: [PATCH] rebase-am: fix regression with new cover-letter config
  2013-04-15  1:48 ` Junio C Hamano
@ 2013-04-15  2:31   ` Felipe Contreras
  2013-04-15  2:51     ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Felipe Contreras @ 2013-04-15  2:31 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Sun, Apr 14, 2013 at 8:48 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> If you have a cover-letter configuration set to anything other than
>> 'false', 'git format-patch' might generate a cover letter, and 'git am'
>> doesn't seem to like that.
>>
>> Ideally 'git am' should skip the cover-letter, but for now lets just fix
>> the regression.
>>
>> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
>> ---
>
> This is a follow-up to the fc/send-email-annotate topic, right?

Right.

> You are mean to say "fix regression", which gave me a small heart
> attack ;-).  I was worried if we had already merged it to 'next'.
>
> As I already wrote in the recent "What's cooking", the series looks
> good to me.  I am inclined to say that we should merge it (together
> with this update) to 'next'.

Yeah, after thinking about it, it's not even really a regression,
because people don't have format.coverletter=auto in their configs
(yet), so the bug can't can possibly affect them.

> Thanks for catching this before breaking the real world users.

I'm running 'next' as you suggested we should do, along with all my
patches, so that helps :)

Cheers.

-- 
Felipe Contreras

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

* Re: [PATCH] rebase-am: fix regression with new cover-letter config
  2013-04-15  2:31   ` Felipe Contreras
@ 2013-04-15  2:51     ` Junio C Hamano
  2013-04-15  2:57       ` Eric Sunshine
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2013-04-15  2:51 UTC (permalink / raw)
  To: Felipe Contreras; +Cc: git

Felipe Contreras <felipe.contreras@gmail.com> writes:

>> You are mean to say "fix regression", which gave me a small heart
>> attack ;-).  I was worried if we had already merged it to 'next'.
>>
>> As I already wrote in the recent "What's cooking", the series looks
>> good to me.  I am inclined to say that we should merge it (together
>> with this update) to 'next'.
>
> Yeah, after thinking about it, it's not even really a regression,
> because people don't have format.coverletter=auto in their configs
> (yet), so the bug can't can possibly affect them.

Here is what I tentatively queued.

    rebase-am: explicitly disable cover-letter
    
    If the user has a cover-letter configuration set to anything
    other than 'false', 'git format-patch' may generate a cover
    letter, which has no place in "format-patch | am" pipeline.
    
    The internal invocatoin of format-patch must explicitly override
    the configuration from the command line, just like --src-prefix
    and other options already do.
    
    Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>

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

* Re: [PATCH] rebase-am: fix regression with new cover-letter config
  2013-04-15  2:51     ` Junio C Hamano
@ 2013-04-15  2:57       ` Eric Sunshine
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Sunshine @ 2013-04-15  2:57 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Felipe Contreras, Git List

On Sun, Apr 14, 2013 at 10:51 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Here is what I tentatively queued.
>
>     rebase-am: explicitly disable cover-letter
>
>     If the user has a cover-letter configuration set to anything
>     other than 'false', 'git format-patch' may generate a cover
>     letter, which has no place in "format-patch | am" pipeline.
>
>     The internal invocatoin of format-patch must explicitly override

s/invocatoin/invocation/

>     the configuration from the command line, just like --src-prefix
>     and other options already do.
>
>     Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
>     Signed-off-by: Junio C Hamano <gitster@pobox.com>

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

end of thread, other threads:[~2013-04-15  2:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-14 22:27 [PATCH] rebase-am: fix regression with new cover-letter config Felipe Contreras
2013-04-15  1:48 ` Junio C Hamano
2013-04-15  2:31   ` Felipe Contreras
2013-04-15  2:51     ` Junio C Hamano
2013-04-15  2:57       ` Eric Sunshine

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).