Skip to content

some send-email --compose fixes

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3doc/send-email: mention handling of "reply-to" with --composeDocumentation/git-send-email.txt+5 -50 replies
2/3Revert "send-email: extract email-parsing code into a subroutine"git-send-email.perl t/t9001-send-email.sh+75 -809 replies
3/3send-email: handle to/cc/bcc from --compose messageDocumentation/git-send-email.txt git-send-email.perl t/t9001-send-email.sh+31 -121 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchUwe Kleine-König
SeriesT-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] some send-email --compose fixes

[culling the rather large cc, as we moving off the original topic]

Quoted 7 lines · Jeff King

and there's your perl array ref (from the square brackets, which are necessary because we're sticking it in a hash value). But even before your patch, this seems to end up as garbage. The code which reads $parsed_line does not dereference the array.

The patch to fix it is only a few lines (well, more than that with some light editorializing in the comments):

So here's the fix in a cleaned up form, guided by my own comments from earlier. ;) I think this is actually all orthogonal to the patch you are working on, so yours could either go on top or just be applied separately.

  [1/3]: doc/send-email: mention handling of "reply-to" with --compose
  [2/3]: Revert "send-email: extract email-parsing code into a subroutine"
  [3/3]: send-email: handle to/cc/bcc from --compose message
 Documentation/git-send-email.txt |  10 +--
 git-send-email.perl              | 132 ++++++++++++-------------------
 t/t9001-send-email.sh            |  41 ++++++++++
 3 files changed, 98 insertions(+), 85 deletions(-)

-Peff