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

Re: [feature suggestion] Improve stash descriptions

From
Jeff King <peff@peff.net>
Date
Apr 26, 2021, 16:14 UTC
Message-ID
<YIbmz2BUKV0/pcIB@coredump.intra.peff.net>
In-Reply-To
<87r1ix4dsc.fsf@evledraar.gmail.com>
On Mon, Apr 26, 2021 at 11:00:57AM +0200, Ævar Arnfjörð Bjarmason wrote:
Show 15 quoted lines
> >> In case many directories are affected it could say "changes are in
> >> path1/dir1, path2/dir2, etc."
> >
> > This is unfortunately not going to be very efficient to compute in
> > certain cases, such as with large working trees where there are many
> > changes.  So while it would improve the automated stash message, it
> > might also make stashing much slower on large repositories.
> 
> Just to add to this, there's already:
> 
>     git stash list [--stat|--numstat|--shortstat]
> 
> It seems to me that what's being requested here is not so much a
> stash-specific feature, but some abbreviated "human readable" stat
> format that could be used with any log-like command.

There's also --dirstat, which will summarize the impacted directories (though it does not say much useful if the entries are all in the root, as they typically are for git.git).

-Peff
Previous: Ævar Arnfjörð Bjarmason
Message 4 of 4 in “[feature suggestion] Improve stash descriptions”
  1. YuriApr 23, 2021
  2. brian m. carlsonApr 25, 2021
  3. Ævar Arnfjörð BjarmasonApr 26, 2021
  4. Jeff KingApr 26, 2021

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.