From: Lucian Poston Date: Tue, 20 Mar 2012 07:38:16 GMT Subject: [PATCH 0/1] Adjust diff stat width calculations so lines do not wrap in terminal when using --graph Message-ID: <1332229097-19262-1-git-send-email-lucian.poston@gmail.com> 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