From c08e52486a7b5e38741c8264979a11f0103ec8c4 Mon Sep 17 00:00:00 2001 From: Matthias Lederhofer Date: Fri, 22 Sep 2006 13:12:01 +0200 Subject: [PATCH] format-patch: use cwd as default output directory Signed-off-by: Junio C Hamano --- builtin-log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin-log.c b/builtin-log.c index fbc58bbcab..130b53a196 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -270,6 +270,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) 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