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