git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Wrong tabs in terminal output for git diff
@ 2021-06-11 19:25 Timothy Madden
  2021-06-11 21:08 ` Felipe Contreras
  2021-06-12 23:10 ` Phil Hord
  0 siblings, 2 replies; 5+ messages in thread
From: Timothy Madden @ 2021-06-11 19:25 UTC (permalink / raw)
  To: git

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


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

end of thread, other threads:[~2021-06-14  1:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-11 19:25 Wrong tabs in terminal output for git diff Timothy Madden
2021-06-11 21:08 ` Felipe Contreras
2021-06-12 23:10 ` Phil Hord
2021-06-13  4:04   ` Jeff King
2021-06-14  1:26     ` 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).