Re: diffstat witdth with one changed file
- From
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
- Date
- May 22, 2012, 05:59 UTC
- Message-ID
- <4FBB2B4B.6030402@in.waw.pl>
- In-Reply-To
- <CACsJy8BrqaLbtVp5uF3q2Jo63DPwtFACYw3_rPy8eyNK7VSWMw@mail.gmail.com>
On 05/21/2012 05:52 PM, Nguyen Thai Ngoc Duy wrote:
Show 7 quoted lines
> Hi, > > With recent git, "git log --stat 90e6ef5", the first commit's diffstat > uses full terminal width while the next one uses less than 80 chars. > Both changes one file. Is it intentional? I tend to think it's a bug > because with one-file changes, diffstat width is not important as we > have no other files to compare with.
Hi, 90e6ef5 makes 502 additions/deletions, so it scales the +- part to the whole available terminal width. 90e6ef5^ does only 41 additions, so it can display the +- part unscaled without even filling the terminal width.
Since we don't coordinate the diffstat width between different commits in the same git-log invocation, there's no way to make the diffstats use the same scale. Anyway, diffstat is only supposed to give a rough overview, and it does that here.
What output would you expect?
Zbyszek