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 22, 2025, 09:15 UTC
Message-ID
<20251022091538.GD853931@coredump.intra.peff.net>
In-Reply-To
<xmqqtszswbwq.fsf@gitster.g>
On Tue, Oct 21, 2025 at 07:46:13AM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > 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.
> 
> ;-)
> 
> Isn't that the exact purpose of that environment variable?  It feels
> a bit unfair to the variable to call it a hack.

Yes, though I think OP wanted something that would work for every invocation of git, without having to pass it explicitly (otherwise they could just use "--stat=200"). Setting COLUMNS=200 sounds like a risky proposition if you run other programs besides Git.

-Peff
Previous: Junio C Hamano
Message 5 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.