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

Re: [PATCH] git add -i: replace \t with blanks in the help message

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 22, 2017, 20:50 UTC
Message-ID
<xmqqlgsyar1d.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170222184627.3811-1-ralf.thielow@gmail.com>
Ralf Thielow <ralf.thielow@gmail.com> writes:
Show 10 quoted lines
> Within the help message of 'git add -i', the 'diff' command uses one
> tab character and blanks to create the space between the name and the
> description while the others use blanks only.  So if the tab size is
> not at 4 characters, this description will not be in range.
> Replace the tab character with blanks.
>
> Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
> ---
>  git-add--interactive.perl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, this was me being sloppy in the very first version.
Will queue.
Show 14 quoted lines
>
> diff --git a/git-add--interactive.perl b/git-add--interactive.perl
> index cf6fc926a..982593c89 100755
> --- a/git-add--interactive.perl
> +++ b/git-add--interactive.perl
> @@ -1678,7 +1678,7 @@ status        - show paths with changes
>  update        - add working tree state to the staged set of changes
>  revert        - revert staged set of changes back to the HEAD version
>  patch         - pick hunks and update selectively
> -diff	      - view diff between HEAD and index
> +diff          - view diff between HEAD and index
>  add untracked - add contents of untracked files to the staged set of changes
>  EOF
>  }
Previous: Ralf Thielow
Message 2 of 2 in “git add -i: replace \t with blanks in the help message”
  1. git add -i: replace \t with blanks in the help messageRalf Thielow, Feb 22, 2017
  2. Junio C HamanoFeb 22, 2017

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.