Re: [PATCH v6 28/32] gc: style change -- no SP before closing bracket
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 9, 2014, 09:47 UTC
- Message-ID
- <CAPig+cSfbs3NuyfbrUrJ5BGP9J7GvGCSda2E7ZjA2k4ZXotNRQ@mail.gmail.com>
- In-Reply-To
- <1404891197-18067-29-git-send-email-pclouds@gmail.com>
On Wed, Jul 9, 2014 at 3:33 AM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 15 quoted lines
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
> builtin/gc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/builtin/gc.c b/builtin/gc.c
> index 8d219d8..53f1302 100644
> --- a/builtin/gc.c
> +++ b/builtin/gc.c
> @@ -285,7 +285,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
> OPT__QUIET(&quiet, N_("suppress progress reporting")),
> { OPTION_STRING, 0, "prune", &prune_expire, N_("date"),
> N_("prune unreferenced objects"),
> - PARSE_OPT_OPTARG, NULL, (intptr_t)prune_expire },
> + PARSE_OPT_OPTARG, NULL, (intptr_t)prune_expire},Yet, there is a space after the opening '{'. So, this is now inconsistently formatted as:
{ foo, bar}Show 14 quoted lines
> OPT_BOOL(0, "aggressive", &aggressive, N_("be more thorough (increased runtime)")),
> OPT_BOOL(0, "auto", &auto_gc, N_("enable auto-gc mode")),
> OPT_BOOL(0, "force", &force, N_("force running gc even if there may be another gc running")),
> @@ -298,7 +298,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
> argv_array_pushl(&pack_refs_cmd, "pack-refs", "--all", "--prune", NULL);
> argv_array_pushl(&reflog, "reflog", "expire", "--all", NULL);
> argv_array_pushl(&repack, "repack", "-d", "-l", NULL);
> - argv_array_pushl(&prune, "prune", "--expire", NULL );
> + argv_array_pushl(&prune, "prune", "--expire", NULL);
> argv_array_pushl(&rerere, "rerere", "gc", NULL);
>
> git_config(gc_config, NULL);
> --
> 1.9.1.346.ga2b5940