git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: No config option for `git diff --stat` to always show the full file path and name (without .../ abbreviations)

From
Jeff King <peff@peff.net>
Date
Oct 21, 2025, 08:14 UTC
Message-ID
<20251021081422.GE259661@coredump.intra.peff.net>
In-Reply-To
<a6ce209d120ca6acf0f5dd04521cb96ac1337a54.camel@aegee.org>
On Sun, Oct 19, 2025 at 09:46:10PM +0300, Дилян Палаузов wrote:
> * Please either alter the option `diff.statGraphWidth` to enlarge the
> available space (broader than the terminal width), or add an option to
> `git config` to set the available space for `--stat`.  This option
> should eventually allow always to print the full path and filenames.

It does seem funny that we have config options for 2 out of 3 of the numbers you can specify via --stat. So adding diff.statTotalWidth or something would make sense to me. I'd guess nobody has asked for it yet because it defaults to the terminal width, so a static config option risks overflowing your terminal if it's too high. On the other hand, if we are going to show it in a pager anyway, they usually support horizontal scrolling. And I guess it's all a matter of preference.

Anyway, one more possible hack: you can set COLUMNS if you want to pretend you have a really big terminal. I.e., "export COLUMNS=200" would probably do what you want without any new Git feature.

-Peff
Previous: Ben KnobleNext: Junio C Hamano
Message 3 of 5 in “No config option for `git diff --stat` to always show the full file path and name (without .../ abbreviations)”
  1. Дилян ПалаузовOct 19, 2025
  2. Ben KnobleOct 20, 2025
  3. Jeff KingOct 21, 2025
  4. Junio C HamanoOct 21, 2025
  5. Jeff KingOct 22, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.