Skip to contentSkip to conversation

git add -i: replace \t with blanks in the help message

PATCH In review Ralf Thielow 2 participants 2 messages Feb 22, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git add -i: replace \t with blanks in the help message

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.

---
 git-add--interactive.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
git-add--interactive.perl +1 -1
index cf6fc926a..982593c89 100755
@@ -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
 }
Signature · 1 line
2.12.0.rc2.424.g63d3652c7
#1 lore raw
Quoted 10 lines · 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.

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

Quoted 14 lines
git-add--interactive.perl +1 -1
index cf6fc926a..982593c89 100755
@@ -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
 }