From: Timothy Madden <terminatorul@gmail.com>
To: git@vger.kernel.org
Subject: Wrong tabs in terminal output for git diff
Date: Fri, 11 Jun 2021 22:25:24 +0300 [thread overview]
Message-ID: <8d3f8cf4-24ec-1271-ccd3-70db24f53523@gmail.com> (raw)
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
next reply other threads:[~2021-06-11 19:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-11 19:25 Timothy Madden [this message]
2021-06-11 21:08 ` Wrong tabs in terminal output for git diff Felipe Contreras
2021-06-12 23:10 ` Phil Hord
2021-06-13 4:04 ` Jeff King
2021-06-14 1:26 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8d3f8cf4-24ec-1271-ccd3-70db24f53523@gmail.com \
--to=terminatorul@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).