From: Matthias Lederhofer Date: Fri, 22 Sep 2006 11:12:01 GMT Subject: [PATCH] format-patch: use cwd as default output directory Message-ID: <20060922111201.GA10124@moooo.ath.cx> In-Reply-To: --- 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