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

Re: [PATCH] misc-sh: fix up whitespace in some other .sh files.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 5, 2011, 17:26 UTC
Message-ID
<7vmxfn3h2v.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1312551089-3753-1-git-send-email-jon.seymour@gmail.com>
Jon Seymour <jon.seymour@gmail.com> writes:
Show 21 quoted lines
> diff --git a/git-filter-branch.sh b/git-filter-branch.sh
> index 962a93b..0d399aa 100755
> --- a/git-filter-branch.sh
> +++ b/git-filter-branch.sh
> @@ -98,11 +98,11 @@ set_ident () {
>  }
>  
>  USAGE="[--env-filter <command>] [--tree-filter <command>]
> -            [--index-filter <command>] [--parent-filter <command>]
> -            [--msg-filter <command>] [--commit-filter <command>]
> -            [--tag-name-filter <command>] [--subdirectory-filter <directory>]
> -            [--original <namespace>] [-d <directory>] [-f | --force]
> -            [<rev-list options>...]"
> +	    [--index-filter <command>] [--parent-filter <command>]
> +	    [--msg-filter <command>] [--commit-filter <command>]
> +	    [--tag-name-filter <command>] [--subdirectory-filter <directory>]
> +	    [--original <namespace>] [-d <directory>] [-f | --force]
> +	    [<rev-list options>...]"
>  
>  OPTIONS_SPEC=
>  . git-sh-setup

Everything other than this hunk is unquestionably fine. I think this one also is Ok but I wonder where the "Indented by 12 columns" comes from. "Usage: git filter-branch " that is prefixed to the first line is 25 columns long, so the "[--index-filter ..." on the second line would not align with "[--env-filter ..." on the first line to begin with.

And I do not think they need to align --- the point is if the second and subsequent lines do not aim to align with anything on the first line, it is just fine to indent them with a single HT, I think.

Previous: Jon SeymourNext: Jon Seymour
Message 2 of 3 in “misc-sh: fix up whitespace in some other .sh files.”
  1. misc-sh: fix up whitespace in some other .sh files.Jon Seymour, Aug 5, 2011
  2. Junio C HamanoAug 5, 2011
  3. Jon SeymourAug 6, 2011

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.