Code

format-patch: use cwd as default output directory
authorMatthias Lederhofer <matled@gmx.net>
Fri, 22 Sep 2006 11:12:01 +0000 (13:12 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 28 Sep 2006 16:13:16 +0000 (09:13 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-log.c

index fbc58bbcab1a992efb6ee359171d7ed6f0c52ab9..130b53a1960988aaf77014d39ee712a4848777b3 100644 (file)
@@ -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