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

git status --diffstat?

From
Jacek Wielemborek <d33tah@gmail.com>
Date
Jun 23, 2015, 19:30 UTC
Message-ID
<5589B3C5.7050504@gmail.com>
Hi,
I recently realized that I could use a "git status" syntax like this:
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
        modified:   macd.py     2 +-
        modified:   macd.wsgi     2 +-
        modified:   macd/admin.py     4 ++++
        modified:   macd/index.html     2 +-
        modified:   macd/models.py     7 +++++--
        modified:   macd/settings.py    27 +++++++++++++++++----------
        modified:   macd/urls.py     6 ++++++
        modified:   macd/views.py    27 +++++++++++++++++++--------
(...)

The idea is to add diffstats to git-status. I cooked up a Python script to do that [1], but I'd like that to be default behavior on my box. Someone suggested me to just implement it in C, but I'm not familiar with the codebase, so it'd take me a while.

What do you think about this? Would anybody else find it useful and perhaps consider implementing it?

Cheers, d33tah

Message 1 of 1 in “git status --diffstat?”
  1. Jacek WielemborekJun 23, 2015

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.