git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git add -i: replace \t with blanks in the help message
@ 2017-02-22 18:46 Ralf Thielow
  2017-02-22 20:50 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Ralf Thielow @ 2017-02-22 18:46 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Jiang Xin, Ralf Thielow

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(-)

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
 }
-- 
2.12.0.rc2.424.g63d3652c7


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] git add -i: replace \t with blanks in the help message
  2017-02-22 18:46 [PATCH] git add -i: replace \t with blanks in the help message Ralf Thielow
@ 2017-02-22 20:50 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2017-02-22 20:50 UTC (permalink / raw)
  To: Ralf Thielow; +Cc: git, Jiang Xin

Ralf Thielow <ralf.thielow@gmail.com> writes:

> 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.

>
> 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
>  }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-22 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-22 18:46 [PATCH] git add -i: replace \t with blanks in the help message Ralf Thielow
2017-02-22 20:50 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).