From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Smelkov Subject: Re: [TopGit RFC PATCH] tg mail: new command for mailing patches Date: Fri, 19 Sep 2008 14:04:41 +0400 Organization: St.Petersburg State University Message-ID: <20080919100441.GF4423@roro3> References: <1221815301-25090-1-git-send-email-kirr@landau.phys.spbu.ru> <36ca99e90809190252q45f01eb2xd02b62b88f0cf3a9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Kirill Smelkov , Petr Baudis , Git Mailing List To: Bert Wesarg X-From: git-owner@vger.kernel.org Fri Sep 19 12:14:11 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kgd04-0004LA-9a for gcvg-git-2@gmane.org; Fri, 19 Sep 2008 12:14:08 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751093AbYISKNA convert rfc822-to-quoted-printable (ORCPT ); Fri, 19 Sep 2008 06:13:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751099AbYISKNA (ORCPT ); Fri, 19 Sep 2008 06:13:00 -0400 Received: from vs281.server4u.cz ([81.91.85.31]:58610 "EHLO vs281.server4u.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbYISKM7 (ORCPT ); Fri, 19 Sep 2008 06:12:59 -0400 Received: from localhost ([127.0.0.1] helo=roro3) by vs281.server4u.cz with esmtp (Exim 4.69) (envelope-from ) id 1Kgd5Z-0000iP-7F; Fri, 19 Sep 2008 12:19:49 +0200 Received: from kirr by roro3 with local (Exim 4.69) (envelope-from ) id 1Kgcqv-0000m0-5q; Fri, 19 Sep 2008 14:04:41 +0400 Content-Disposition: inline In-Reply-To: <36ca99e90809190252q45f01eb2xd02b62b88f0cf3a9@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Fri, Sep 19, 2008 at 11:52:03AM +0200, Bert Wesarg wrote: > On Fri, Sep 19, 2008 at 11:08, Kirill Smelkov wrote: > > Petr, since you've asked for help on this, here you are: > > > > $ tg mail [NAME] > > > > a simple script to send one patch over email. > > > > > > All it does is > > > > - call `tg patch` for actual patch preparation > > - extract email addresses from whom and where to send a mail > That shouldn't be needed. git send-email parses Cc: headers and the Exactly for this reason I do not extract Cc. And git send-mail does not extract From: -- it just asks to confirm From is GIT_COMMITTER_IDENT, and there is no option to stop it doing so except providing explicit --from (maybe i'm missing something?). > To: comes from 'git config topgit.to', so you can re-use this. Yes, it comes directly to .topmsg when `tg create` is done, so I though= t the main source of information is the patch itself -- users may want to edit that To: by hand or add another To: lines. and what If a patch is already exported as a file, and I want to send/resend it upstream right from that file? We may want to look for topgit.to too though. --=20 =D0=92=D1=81=D0=B5=D0=B3=D0=BE =D1=85=D0=BE=D1=80=D0=BE=D1=88=D0=B5= =D0=B3=D0=BE, =D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB.