summaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorMatthias Lederhofer <matled@gmx.net>2006-09-22 11:12:01 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-28 16:13:16 (GMT)
commitc08e52486a7b5e38741c8264979a11f0103ec8c4 (patch)
tree49639e3bce520b288e5256e534bb6791cf0da57f /builtin-log.c
parent7b40e7d1ab20aebaac86b4586d48b6b645da57d1 (diff)
downloadgit-c08e52486a7b5e38741c8264979a11f0103ec8c4.zip
git-c08e52486a7b5e38741c8264979a11f0103ec8c4.tar.gz
git-c08e52486a7b5e38741c8264979a11f0103ec8c4.tar.bz2
format-patch: use cwd as default output directory
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c2
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 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