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

Re: [PATCH 3/3] pull: trivial whitespace style fix

From
Elijah Newren <newren@gmail.com>
Date
Jun 14, 2021, 15:03 UTC
Message-ID
<CABPp-BFEHcX0CRgbYr4Y_hqiAzM=YUp-wzdtwRdOxcZ-jPWyow@mail.gmail.com>
In-Reply-To
<20210613045949.255090-4-felipe.contreras@gmail.com>

On Sat, Jun 12, 2021 at 9:59 PM Felipe Contreras <felipe.contreras@gmail.com> wrote:

Show 28 quoted lines
>
> Two spaces unaligned to anything is not part of the coding-style. A
> single tab is.
>
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---
>  builtin/pull.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/builtin/pull.c b/builtin/pull.c
> index 80e2f55cbc..3e13f81084 100644
> --- a/builtin/pull.c
> +++ b/builtin/pull.c
> @@ -126,9 +126,9 @@ static struct option pull_options[] = {
>         /* Options passed to git-merge or git-rebase */
>         OPT_GROUP(N_("Options related to merging")),
>         OPT_CALLBACK_F('r', "rebase", &opt_rebase,
> -         "(false|true|merges|preserve|interactive)",
> -         N_("incorporate changes by rebasing rather than merging"),
> -         PARSE_OPT_OPTARG, parse_opt_rebase),
> +               "(false|true|merges|preserve|interactive)",
> +               N_("incorporate changes by rebasing rather than merging"),
> +               PARSE_OPT_OPTARG, parse_opt_rebase),
>         OPT_PASSTHRU('n', NULL, &opt_diffstat, NULL,
>                 N_("do not show a diffstat at the end of the merge"),
>                 PARSE_OPT_NOARG | PARSE_OPT_NONEG),
> --
> 2.32.0

Not only does this change bring this code in alignment with the coding style, it also makes it more consistent with the other code around it. None of the other options parsing in this file used a tab-and-two-space indent, so it's curious why this one was added this way. Anyway, thanks for fixing.

Previous: Felipe ContrerasNext: Felipe Contreras
Message 3 of 17 in “pull: obvious fixes”
  1. 0/3 pull: obvious fixesFelipe Contreras, Jun 13, 2021
  2. 3/3 pull: trivial whitespace style fixFelipe Contreras, Jun 13, 2021
  3. Elijah NewrenJun 14, 2021
  4. 2/3 pull: trivial cleanupFelipe Contreras, Jun 13, 2021
  5. Elijah NewrenJun 14, 2021
  6. 1/3 pull: cleanup autostash checkFelipe Contreras, Jun 13, 2021
  7. Elijah NewrenJun 14, 2021
  8. Felipe ContrerasJun 15, 2021
  9. Elijah NewrenJun 14, 2021
  10. Junio C HamanoJun 15, 2021
  11. Felipe ContrerasJun 15, 2021
  12. 0/3 pull: obvious fixesFelipe Contreras, Jun 17, 2021
  13. 1/3 pull: cleanup autostash checkFelipe Contreras, Jun 17, 2021
  14. 2/3 pull: trivial cleanupFelipe Contreras, Jun 17, 2021
  15. 3/3 pull: trivial whitespace style fixFelipe Contreras, Jun 17, 2021
  16. Elijah NewrenJun 17, 2021
  17. Felipe ContrerasJun 15, 2021

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.