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

[RFC] New configuration option "diff.statNameWidth"

From
DSDragan Simic <dsimic@manjaro.org>
Date
Sep 2, 2023, 18:03 UTC
Message-ID
<eb8f524eca3975f086715ec32a8a1fbb@manjaro.org>
Hello,

I'd like to implement support for a new configuration option named "diff.statNameWidth" and submit the patch, so I'd like to check first would that patch be accepted and merged.

Similarly to the already existing configuration option "diff.statGraphWidth",[1][2] "diff.statNameWidth" as a new configuration option would limit the width of the filename part in generated diffstat outputs, just like the command-line option "--stat-name-width=<n>" already does.

Having "diff.statNameWidth" as a new configuration option would be quite usable, and it would fit together nicely with the already existing "diff.statGraphWidth" configuration option. For exaple, I have quite a few aliases in my ~/.gitconfig that contain "--stat-name-width=<n>", and having this new configuration option would allow those aliases to be much shorter. Of course, it would benefit all other uses in which diffstats are generated.

Please advise.

Links: [1] https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---statltwidthgtltname-widthgtltcountgt [2] https://git-scm.com/docs/git-config#Documentation/git-config.txt-diffstatGraphWidth

Next: Junio C Hamano
Message 1 of 8 in “[RFC] New configuration option "diff.statNameWidth"”
  1. Dragan SimicSep 2, 2023
  2. Junio C HamanoSep 2, 2023
  3. Dragan SimicSep 2, 2023
  4. Junio C HamanoSep 2, 2023
  5. Dragan SimicSep 3, 2023
  6. Dragan SimicSep 11, 2023
  7. Junio C HamanoSep 11, 2023
  8. Dragan SimicSep 12, 2023

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.