Re: [GSoC RFC PATCH v2 4/7] repo-info: add the --allow-empty flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

> Lucas Seiki Oshiro <lucasseikioshiro@xxxxxxxxx> writes:
>
>> Add a flag --allow-empty, which will force the output data to be empty
>> when no field is requested.
>
> I still think we should flip the polarity of the option and give "--all"
> to iterate over all variables, and by default show nothing.
>

I thought the idea was that we would show a subset of the fields by
default when no user input is provided. Which would mean we have the
following:

  * `git repo-info` which would show a subset of all fields, giving
    important repository information.
  * `git repo-info --all` which would show all available fields.
  * `git repo-info <fields>` which would only show the requested fields.

With this context, I'm not entirely sure where '--allow-empty' fits in.

If this is/not the case, it would be nice to talk about this in more
detail in the cover message and also in the individual patches.

This is also a good time to think about if we should make the default to
not show anything as Junio mentioned.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux