[PATCH] format-patch: use cwd as default output directory
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- Sep 22, 2006, 11:12 UTC
- Message-ID
- <20060922111201.GA10124@moooo.ath.cx>
- In-Reply-To
- <fcaeb9bf0609220221w3a65af24u9db1da4e1be0d1eb@mail.gmail.com>
--- Nguyen Thai Ngoc Duy <pclouds@gmail.com> 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