From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21410C433B4 for ; Mon, 26 Apr 2021 16:14:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D117061166 for ; Mon, 26 Apr 2021 16:14:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234024AbhDZQOu (ORCPT ); Mon, 26 Apr 2021 12:14:50 -0400 Received: from cloud.peff.net ([104.130.231.41]:35456 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233736AbhDZQOu (ORCPT ); Mon, 26 Apr 2021 12:14:50 -0400 Received: (qmail 30069 invoked by uid 109); 26 Apr 2021 16:14:08 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Mon, 26 Apr 2021 16:14:08 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 8111 invoked by uid 111); 26 Apr 2021 16:14:08 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Mon, 26 Apr 2021 12:14:08 -0400 Authentication-Results: peff.net; auth=none Date: Mon, 26 Apr 2021 12:14:07 -0400 From: Jeff King To: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason Cc: "brian m. carlson" , Yuri , Git Mailing List Subject: Re: [feature suggestion] Improve stash descriptions Message-ID: References: <87r1ix4dsc.fsf@evledraar.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87r1ix4dsc.fsf@evledraar.gmail.com> Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Mon, Apr 26, 2021 at 11:00:57AM +0200, Ævar Arnfjörð Bjarmason wrote: > >> 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