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