Re: [PATCH] format-patch: use cwd as default output directory
This patch works great. I assume you forgot it?
On 9/22/06, Matthias Lederhofer <matled@gmx.net> wrote:
Show 26 quoted lines
> ---
> 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
>
>
--
Duy