git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Philippe Blain <levraiphilippeblain@gmail.com>
To: Marc Sune <marcdevel@gmail.com>
Cc: Git mailing list <git@vger.kernel.org>
Subject: Re: git diff --submodule=diff and --stat/--dirstat/--name-only
Date: Wed, 14 Oct 2020 09:29:18 -0400	[thread overview]
Message-ID: <E3D98950-2EA1-4BFE-8A2D-CE8AEAF5AD39@gmail.com> (raw)
In-Reply-To: <CA+3n-TrVncSq6kY8sTTw=LiOvLKe=6k1yBE8cmmR3i40CaXR6w@mail.gmail.com>

Hi Marc,

> Le 14 oct. 2020 à 06:14, Marc Sune <marcdevel@gmail.com> a écrit :
> 
> Hello all,
> 
> First, thank you to the community for the great work. Worth saying it
> from time to time, I think.
> 
> I am dealing with a couple of big repositories that use git
> submodules. They have nested submodules, and some of them are pretty
> huge. I came across:
> 
> git diff --submodule=diff
> 
> Which is very handy for creating some tooling, but it's obviously slow
> - in the order of tens of minutes in my case - for big diffs. I was
> only interested in the list files that changed, in this particular
> case, but:
> 
> git diff --stat --submodule=diff
> 
> doesn't seem to honour `--submodule=diff` and it doesn't go into the
> submodule(s) nor recurses, of course. Other options like `--dirstat`
> or `--name-only` seem to behave the same way.
> 
> I've tried this v2.20.1 and the HEAD of master (d4a392452e) with the
> same results. Is this a missing feature, a bug or is it just the
> intended behaviour?
> 
> Regards
> marc

This would indeed be useful. It's a missing feature, and so intended behaviour
for the moment, I would say. It was discussed recently on the list [1] :


[1] https://lore.kernel.org/git/20200924063829.GA1851751@coredump.intra.peff.net/t/#u

Cheers,

Philippe.


  reply	other threads:[~2020-10-14 13:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14 10:14 git diff --submodule=diff and --stat/--dirstat/--name-only Marc Sune
2020-10-14 13:29 ` Philippe Blain [this message]
2020-10-14 14:35   ` Marc Sune
2020-10-14 22:51     ` Philippe Blain
2020-10-14 22:59       ` Marc Sune

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E3D98950-2EA1-4BFE-8A2D-CE8AEAF5AD39@gmail.com \
    --to=levraiphilippeblain@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=marcdevel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).