From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] editor.c: Libify launch_editor() Date: Fri, 25 Jul 2008 01:36:53 -0700 Message-ID: <7vvdyuuzq2.fsf@gitster.siamese.dyndns.org> References: <1216380408-21671-1-git-send-email-s-beyer@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Stephan Beyer , git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Fri Jul 25 10:38:06 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 1KMIoO-0006zv-Q7 for gcvg-git-2@gmane.org; Fri, 25 Jul 2008 10:38:05 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752663AbYGYIhE (ORCPT ); Fri, 25 Jul 2008 04:37:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752674AbYGYIhE (ORCPT ); Fri, 25 Jul 2008 04:37:04 -0400 Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:39643 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752299AbYGYIhD (ORCPT ); Fri, 25 Jul 2008 04:37:03 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 567273A085; Fri, 25 Jul 2008 04:36:59 -0400 (EDT) Received: from pobox.com (ip68-225-240-211.oc.oc.cox.net [68.225.240.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 4250F3A083; Fri, 25 Jul 2008 04:36:55 -0400 (EDT) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: D8CA4078-5A24-11DD-80B8-3113EBD4C077-77302942!a-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin writes: > Hi, > > On Fri, 18 Jul 2008, Stephan Beyer wrote: > >> This patch removes exit()/die() calls and builtin-specific messages from >> launch_editor(), so that it can be used as a general libgit.a function >> to launch an editor. > > Thanks. Now we have to convince Junio that it is a good idea :-) Eh, excuse me. >> diff --git a/editor.c b/editor.c >> index 483b62d..5d7f5f9 100644 >> --- a/editor.c >> +++ b/editor.c >> @@ -17,9 +17,8 @@ void launch_editor(const char *path, struct strbuf *buffer, const char *const *e > ... > Why not "return error()"? > > Rest looks obviously correct to me! This is a patch to an existing file editor.c???