git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Adjust diff stat width calculations so lines do not wrap in terminal when using --graph
@ 2012-03-20  7:38 Lucian Poston
  2012-03-20  7:38 ` [PATCH 1/1] Fix --stat width calculations to handle --graph Lucian Poston
  0 siblings, 1 reply; 7+ messages in thread
From: Lucian Poston @ 2012-03-20  7:38 UTC (permalink / raw)
  To: git; +Cc: Lucian Poston

When diff stats are displayed in the terminal, the width is scaled to fit
within the available $COLUMNS. The current stat width calculations do not
factor in the diff output prefix that is displayed when when graphing the
commit history e.g. `git log --graph --stat`. Consequently, the diff stats can
wrap to next line breaking the text graph representation.

This patch adjusts the diff stat width calculations to prevent line wrapping
when the text-based graph representation is displayed along with the diff
stats.


Lucian Poston (1):
  Fix --stat width calculations to handle --graph

 diff.c                 |   55 ++++++++++++++++++++++++++++++++---------------
 t/t4052-stat-output.sh |   24 +++++++++++++++++++-
 2 files changed, 59 insertions(+), 20 deletions(-)

-- 
1.7.3.4

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

end of thread, other threads:[~2012-03-22 19:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-20  7:38 [PATCH 0/1] Adjust diff stat width calculations so lines do not wrap in terminal when using --graph Lucian Poston
2012-03-20  7:38 ` [PATCH 1/1] Fix --stat width calculations to handle --graph Lucian Poston
2012-03-20 16:17   ` Johannes Schindelin
2012-03-20 17:23     ` Junio C Hamano
2012-03-22 19:33     ` Lucian Poston
2012-03-20 17:09   ` Junio C Hamano
2012-03-22 19:39     ` Lucian Poston

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