malformed threads when using both --in-reply-to and --compose with git send-email
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 [email protected] --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.
Signature · 1 line
Sylvain Rabot <[email protected]>
Quoted 19 lines · Sylvain Rabot
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 [email protected] --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 patchI would have expected something more like this which is done when starting a new thread :
Quoted 6 lines
+ 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.