git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* RFC][Feature] submodule: teach subcommand 'summary' to give summary for nested submodules
@ 2020-03-18 16:32 Shourya Shukla
  2020-03-18 19:48 ` [RFC][Feature] " Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Shourya Shukla @ 2020-03-18 16:32 UTC (permalink / raw)
  To: git
  Cc: gitster, johannes.schindelin, newren, peff, chriscool, jnareb,
	Shourya Shukla

Hello everyone,

I was converting the subcommand 'summary'(of command submodule) from shell to C and I realised that
the subcommand does not have a '--recursive' option in it, meaning it cannot give out summaries of nested
submodules. My opinion on this is that an option should maybe exist for the same.

What are the community's thoughts on this? Should the aforementioned option be added? Is there any feasibility
of this option in this case?

Regards,
Shourya Shukla

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC][Feature] submodule: teach subcommand 'summary' to give summary for nested submodules
  2020-03-18 16:32 RFC][Feature] submodule: teach subcommand 'summary' to give summary for nested submodules Shourya Shukla
@ 2020-03-18 19:48 ` Junio C Hamano
  2020-03-19 17:16   ` Re: RFC][Feature] submodule Shourya Shukla
  0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2020-03-18 19:48 UTC (permalink / raw)
  To: Shourya Shukla; +Cc: git, johannes.schindelin, newren, peff, chriscool, jnareb

Shourya Shukla <shouryashukla.oo@gmail.com> writes:

> I was converting the subcommand 'summary'(of command submodule)
> from shell to C and I realised that the subcommand does not have a
> '--recursive' option in it, meaning it cannot give out summaries
> of nested submodules. My opinion on this is that an option should
> maybe exist for the same.
>
> What are the community's thoughts on this? Should the
> aforementioned option be added? Is there any feasibility of this
> option in this case?

If "git submodule summary --recursive" errors out with today's code,
no sane user would be using it for any useful purpose, so I would
think it is OK to add such a feature.

If it makes a usable UI for large projects that you can only choose
between "include no subsubmodules" (i.e. with --no-recursive) or
"include all sub(sub)*modules" (i.e. with --recursive) is another
matter, though.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: RFC][Feature] submodule
  2020-03-18 19:48 ` [RFC][Feature] " Junio C Hamano
@ 2020-03-19 17:16   ` Shourya Shukla
  2020-03-19 21:33     ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Shourya Shukla @ 2020-03-19 17:16 UTC (permalink / raw)
  To: gitster
  Cc: chriscool, git, jnareb, johannes.schindelin, newren, peff,
	Shourya Shukla

Hello Junio,

> If "git submodule summary --recursive" errors out with today's code,
> no sane user would be using it for any useful purpose, so I would
> think it is OK to add such a feature.

Sure thing! I will try to plan some makeshift implementation.

> If it makes a usable UI for large projects that you can only choose
> between "include no subsubmodules" (i.e. with --no-recursive) or
> "include all sub(sub)*modules" (i.e. with --recursive) is another
> matter, though.

I think discussing this idea may be a good approach right now? What
you are saying for large projects does provoke thought though..
Also, what do you think may become a problem for large projects in
here?

Thank you so much for the feedback BTW :)

Regards,
Shourya Shukla

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RFC][Feature] submodule
  2020-03-19 17:16   ` Re: RFC][Feature] submodule Shourya Shukla
@ 2020-03-19 21:33     ` Junio C Hamano
  2020-03-20 16:08       ` Re: [RFC][Feature] Shourya Shukla
  0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2020-03-19 21:33 UTC (permalink / raw)
  To: Shourya Shukla; +Cc: chriscool, git, jnareb, johannes.schindelin, newren, peff

Shourya Shukla <shouryashukla.oo@gmail.com> writes:

> Also, what do you think may become a problem for large projects in
> here?

Perhaps

    "We want submodule A and B's sub(sub)*modules all the way down
    to the leaf submodule, but directory C houses many submodules,
    among which only one can be active, and we want C/X and its
    sub(sub)*modules all the way down to the leaf but not C/Y nor
    C/Z or any other C/<anything>."

and similar requests along the line.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [RFC][Feature]
  2020-03-19 21:33     ` Junio C Hamano
@ 2020-03-20 16:08       ` Shourya Shukla
  2020-03-24  7:29         ` Christian Couder
  0 siblings, 1 reply; 6+ messages in thread
From: Shourya Shukla @ 2020-03-20 16:08 UTC (permalink / raw)
  To: gitster
  Cc: chriscool, git, jnareb, johannes.schindelin, newren, peff,
	Shourya Shukla

>    "We want submodule A and B's sub(sub)*modules all the way down
>    to the leaf submodule, but directory C houses many submodules,
>    among which only one can be active, and we want C/X and its
>    sub(sub)*modules all the way down to the leaf but not C/Y nor
>    C/Z or any other C/<anything>."

That's a tough one. Would you advise developing the feature which may
work atleast for the "normal" cases? In case it does not work for the
aforementioned case and the like, we classify it as a BUG for further
correction?

Regards,
Shourya Shukla


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [RFC][Feature]
  2020-03-20 16:08       ` Re: [RFC][Feature] Shourya Shukla
@ 2020-03-24  7:29         ` Christian Couder
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Couder @ 2020-03-24  7:29 UTC (permalink / raw)
  To: Shourya Shukla
  Cc: Junio C Hamano, Christian Couder, git, Jakub Narebski,
	Johannes Schindelin, Elijah Newren, Jeff King

On Fri, Mar 20, 2020 at 5:08 PM Shourya Shukla
<shouryashukla.oo@gmail.com> wrote:
>
> >    "We want submodule A and B's sub(sub)*modules all the way down
> >    to the leaf submodule, but directory C houses many submodules,
> >    among which only one can be active, and we want C/X and its
> >    sub(sub)*modules all the way down to the leaf but not C/Y nor
> >    C/Z or any other C/<anything>."
>
> That's a tough one. Would you advise developing the feature which may
> work atleast for the "normal" cases? In case it does not work for the
> aforementioned case and the like, we classify it as a BUG for further
> correction?

How are the other git-submodule sub-commands working with --recursive?
Shouldn't --recursive work in the same way for all the sub-commands?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-24  7:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 16:32 RFC][Feature] submodule: teach subcommand 'summary' to give summary for nested submodules Shourya Shukla
2020-03-18 19:48 ` [RFC][Feature] " Junio C Hamano
2020-03-19 17:16   ` Re: RFC][Feature] submodule Shourya Shukla
2020-03-19 21:33     ` Junio C Hamano
2020-03-20 16:08       ` Re: [RFC][Feature] Shourya Shukla
2020-03-24  7:29         ` Christian Couder

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).