log: fix line wrap on diffstat with -G/--graph (issue5800)

Authored by navaneeth.suresh.