Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 086BC431FC2; Wed, 18 Nov 2009 08:29:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DsOqqwEWzYp2; Wed, 18 Nov 2009 08:29:36 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A961F431FBF; Wed, 18 Nov 2009 08:29:35 -0800 (PST) From: Carl Worth To: Lars Kellogg-Stedman , notmuch In-Reply-To: <20091118010116.GC25380@dottiness.seas.harvard.edu> References: <20091118005829.GB25380@dottiness.seas.harvard.edu> <20091118010116.GC25380@dottiness.seas.harvard.edu> Date: Wed, 18 Nov 2009 08:29:20 -0800 Message-ID: <874ooraja7.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] "notmuch help" outputs to stderr? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 16:29:37 -0000 On Tue, 17 Nov 2009 20:01:16 -0500, Lars Kellogg-Stedman wrote: > > I've attached a patch that lets usage() take a FILE * argument so that > > you can output to stderr in response to usage errors, and stdout in > > response to an explicit request. > > Whoops, missed a couple of stderr's in that last patch. New one > attached. > > -- > Lars Kellogg-Stedman > Senior Technologist, Computing and Information Technology > Harvard University School of Engineering and Applied Sciences Thanks Lars! That was obviously a bug, so I really appreciate both your report and your fix. BTW, for future patches, it would be easier for me, (and hopefully not too much harder for you), if you could format your mails so that "git am" will find a good commit message in them. There are a few different ways you can do that: Option (1) takes more work upfront to get comfortable with it and to make sure it works, but it's probably less work (particuarly 1.b with "git send-email) once you get into the flow of it. Option (2) is probably the least different from what you're currently doing. 1. Make a commit locally with the commit message. Then run "git format-patch", (with "git format-patch HEAD~N" where N is the number of commits you want to generate), to generate formatted email messages, (or even an entire mbox). a. Suck those messages up into an email program. Add any commentary (to not be part of the commit message) after the --- separator and send. b. Use "git send-email" to fire the messages off. 2. Just attach the "git diff" output like you did, but then carefully word the subject and body of the email message to look like a commit message. You can again use a --- separator for commentary that's not part of the patch. For example, option (2) would have looked like the below to generate the commit message I ended up using for your commit. Anyway, thanks again, -Carl Subject: [Patch] notmuch help: Print to stdout, not to stderr. Let usage() take a FILE * argument so that you can output to stderr in response to usage errors, and stdout in response to an explicit request. --- Whoops, missed a couple of stderr's in that last patch. New one attached. -- Lars Kellogg-Stedman Senior Technologist, Computing and Information Technology Harvard University School of Engineering and Applied Sciences