git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v5] format-patch: introduce format.outputDirectory configuration

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jan 13, 2016, 06:52 UTC
Message-ID
<CAPig+cTCRq9VCT7t8E9yjk4QcHYB2_qeBwGB_31keB4nTjkLkA@mail.gmail.com>
In-Reply-To
<1452660493-5430-1-git-send-email-ischis2@cox.net>
On Tue, Jan 12, 2016 at 11:48 PM, Stephen P. Smith <ischis2@cox.net> wrote:
Show 8 quoted lines
> From: Alexander Kuleshov <kuleshovmail@gmail.com>
>
> We can pass -o/--output-directory to the format-patch command to store
> patches in some place other than the working directory. This patch
> introduces format.outputDirectory configuration option for same
> purpose.
>
> The case of usage of this configuration option can be convinience
Mentioned several times already: s/convinience/convenience/
Show 15 quoted lines
> to not pass every time -o/--output-directory if an user has pattern
> to store all patches in the /patches directory for example.
>
> The format.outputDirectory has lower priority than command line
> option, so if user will set format.outputDirectory and pass the
> command line option, a result will be stored in a directory that
> passed to command line option.
>
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
> Signed-off-by: Stephen P. Smith <ischis2@cox.net>
> ---
> Notes:
>     Fixed bug which was found when moving the tests to the end of the
>     script by removing the hardcoded expected count and replacing with a
>     computation of the number of actual patches.

Thanks, this version looks better. Aside from the misspelling above and a minor comment below, this version is:

Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
>     Mailing list web interface is again not working; therefore, I don't
>     have URLs for the earlier review comments.
The full set of attempts is here [1].
[1]: http://thread.gmane.org/gmane.comp.version-control.git/272180
Show 6 quoted lines
> diff --git a/builtin/log.c b/builtin/log.c
> @@ -707,6 +707,8 @@ enum {
>         COVER_AUTO
>  };
>
> +static const char *config_output_directory;

I don't care strongly, but I wonder why this new variable is placed below the enum rather than being grouped with other similar variables just above this enum. (Probably not worth a re-roll, though.)

>  static int git_format_config(const char *var, const char *value, void *cb)
>  {
>         if (!strcmp(var, "format.headers")) {
Previous: Stephen P. SmithNext: Stephen P. Smith
Message 12 of 14 in “format-patch: introduce format.outputDirectory configuration”
  1. format-patch: introduce format.outputDirectory configurationAlexander Kuleshov, Jun 19, 2015
  2. Eric SunshineJun 19, 2015
  3. Junio C HamanoSep 21, 2015
  4. Eric SunshineSep 22, 2015
  5. Junio C HamanoOct 28, 2015
  6. format-patch: introduce format.outputDirectory configurationStephen P. Smith, Jan 10, 2016
  7. Eric SunshineJan 10, 2016
  8. format-patch: introduce format.outputDirectory configurationStephen P. Smith, Jan 11, 2016
  9. Eric SunshineJan 11, 2016
  10. Eric SunshineJan 11, 2016
  11. format-patch: introduce format.outputDirectory configurationStephen P. Smith, Jan 13, 2016
  12. Eric SunshineJan 13, 2016
  13. format-patch: introduce format.outputDirectory configurationStephen P. Smith, Jan 13, 2016
  14. Eric SunshineJan 13, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.