# malformed threads when using both --in-reply-to and --compose with git send-email

2 messages from 2010-03-29 to 2010-03-30. Participants: Sylvain Rabot, Marc Branchaud.
Thread: https://gitlist.dev/t/23242

## Sylvain Rabot, 2010-03-29 22:49

Subject: malformed threads when using both --in-reply-to and --compose with git send-email
Message-ID: <1269902972.3392.42.camel@kheops>
URL: https://gitlist.dev/e/1269902972.3392.42.camel%40kheops

```
Hey,

I don't know if it's the wanted behavior but It seemed odd to me.

If I want to send a series of patches to an already started thread using
--in-reply-to option and --compose this is what I would get :

git send-email --to git@vger.kernel.org --compose --in-reply-to <Message
#2> --format-patch HEAD~2

+ Message #1
  + Message #2
    + [PATCH 0/2] My Serie of patches
    + [PATCH 1/2] My first patch
    + [PATCH 2/2] My second patch

I would have expected something more like this which is done when
starting a new thread :

+ Message #1
  + Message #2
    + [PATCH 0/2] My Serie of patcher (In-Reply-To : <Message #2>)
      + [PATCH 1/2] My first patch (In-Reply-To : <My Serie of patches>)
      + [PATCH 2/2] My second patch (In-Reply-To : <My Serie of
patches>)

Regards.

-- 
Sylvain Rabot <sylvain@abstraction.fr>

```

## Marc Branchaud, 2010-03-30 14:12

Subject: Re: malformed threads when using both --in-reply-to and --compose with git send-email
Message-ID: <4BB206E9.8050807@xiplink.com>
URL: https://gitlist.dev/e/4BB206E9.8050807%40xiplink.com
In-Reply-To: <1269902972.3392.42.camel@kheops>

```
Sylvain Rabot wrote:
> Hey,
> 
> I don't know if it's the wanted behavior but It seemed odd to me.
> 
> If I want to send a series of patches to an already started thread using
> --in-reply-to option and --compose this is what I would get :
> 
> git send-email --to git@vger.kernel.org --compose --in-reply-to <Message
> #2> --format-patch HEAD~2
> 
> + Message #1
>   + Message #2
>     + [PATCH 0/2] My Serie of patches
>     + [PATCH 1/2] My first patch
>     + [PATCH 2/2] My second patch
> 
> I would have expected something more like this which is done when
> starting a new thread :
> 
> + Message #1
>   + Message #2
>     + [PATCH 0/2] My Serie of patcher (In-Reply-To : <Message #2>)
>       + [PATCH 1/2] My first patch (In-Reply-To : <My Serie of patches>)
>       + [PATCH 2/2] My second patch (In-Reply-To : <My Serie of
> patches>)

I encountered this as well and agree with you that the latter would be
better.  --compose should only apply the --in-reply-to value to the composed
message.

Care to make a patch?

		M.

```
