Re: [PATCH] repo: add --all to git-repo-info
On Tue, Sep 16, 2025 at 09:19:02AM -0700, Junio C Hamano wrote:
Show 19 quoted lines
> Patrick Steinhardt <ps@pks.im> writes:
>
> > One thing I wonder is whether we actually need the "--all" flag in the
> > first place. Right now, when saying `git repo info` without any further
> > arguments, then the user will be met with complete silence. I don't
> > really think that this is useful as a default in any way, as it makes it
> > very difficult for the user to figure out what kind of information
> > exists in the first place.
>
> If we were talking about interactive tool, I might agree, but for a
> tool for scriptors,
>
> tool "$@"
>
> should not silently turn into
>
> tool --all
>
> when $# == 0. That is asking for surprises.
That's fair. Let's stick with a flag then.
Patrick