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

Make 'git stash list' more informative

From
YYuri <yuri@rawbw.com>
Date
Apr 5, 2025, 04:12 UTC
Message-ID
<edcd6174-e931-4ab9-b61d-8126a6cab740@rawbw.com>

Currently 'git stash list' prints lines like this: stash@{10}: WIP on main: 3f802b772d88 science/py-pymatgen: update 2025.1.24 → 2025.2.18

It contains the last commit's subject which often/usually doesn't really describe the stash entry.

I propose to amend WIP stash entry descriptions with size, number of dirs and files, and time description, so that the above entry might look like this:

stash@{10}: WIP on main: 3f802b772d88 science/py-pymatgen: update 2025.1.24 → 2025.2.18 (+20, -5, 3 dirs, 5 files, 17 days ago)

It would add info about the number of changed lines, number of affected directories and files, and how old this stash record is.

This would make WIP stash lines much more informative and they would actually describe better what is in them.

Thanks, Yuri

Next: Lucas Seiki Oshiro
Message 1 of 4 in “Make 'git stash list' more informative”
  1. YuriApr 5, 2025
  2. Lucas Seiki OshiroApr 5, 2025
  3. Junio C HamanoApr 7, 2025
  4. Lucas Seiki OshiroApr 8, 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.