Thread (4 messages) flat view 4 messages, 4 authors, 2021-06-13

Wrong tabs in terminal output for git diff

From: Timothy Madden <hidden>
Date: 2021-06-11 19:26:37

Hello,

For git diff and git show commands, terminal output appears with wrong 
tab stops (missaligned).

Because diff operation inserts a new column at character position 1, for 
the +, - and space characters, the diff content appears shifted to the 
right by 1 column. But not the tab stop positions. So relative to the 
text, the tab stops now appear off-by-one (shifted to the left).

This results in text that appearing missaligned, even though the 
original file looks fine before the diff.

I believe this is not a new issue, since git gui does the right thing 
and the tab stops are aligned properly in the GUI.

Is it possible please to fix diff output as well, when used in the 
terminal (interactive mode) ?

(I can include screenshots but I am not sure what the mailing list 
policy is about that)

--
Thank you,
Timothy Madden
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help