From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Lederhofer Subject: [PATCH] format-patch: use cwd as default output directory Date: Fri, 22 Sep 2006 13:12:01 +0200 Message-ID: <20060922111201.GA10124@moooo.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Sep 22 13:12:52 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GQixT-0000un-61 for gcvg-git@gmane.org; Fri, 22 Sep 2006 13:12:39 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932298AbWIVLMT (ORCPT ); Fri, 22 Sep 2006 07:12:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932297AbWIVLMS (ORCPT ); Fri, 22 Sep 2006 07:12:18 -0400 Received: from moooo.ath.cx ([85.116.203.178]:30626 "EHLO moooo.ath.cx") by vger.kernel.org with ESMTP id S932296AbWIVLMG (ORCPT ); Fri, 22 Sep 2006 07:12:06 -0400 To: Nguyen Thai Ngoc Duy Mail-Followup-To: Nguyen Thai Ngoc Duy , git@vger.kernel.org Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: --- Nguyen Thai Ngoc Duy wrote: > git format-patch in subdir generates files in topdir instead of > current dir as documented in its man page Here is a patch for this. --- builtin-log.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/builtin-log.c b/builtin-log.c index fbc58bb..130b53a 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -270,6 +270,8 @@ int cmd_format_patch(int argc, const cha rev.extra_headers = extra_headers; + output_directory = prefix; + /* * Parse the arguments before setup_revisions(), or something * like "git fmt-patch -o a123 HEAD^.." may fail; a123 is -- 1.4.2.1.ge767