Re: [GSoC RFC PATCH v4 2/4] repo: add the field references.format

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

 



On 25/07/18 05:26PM, Lucas Seiki Oshiro wrote:
> 
> > So maybe we have three different output modes for `--format=<mode>`:
> > `user` (default), `keyvalue`, and `nul`?
> 
> What about `porcelain` (default), `keyvalue` and `null` (being `-z` an
> alias for this last one)?

Sure that also would work.

> 
> > For `git repo info`, I'm not entirely certain how the default
> > user-friendly mode would/should differ from the key-value one
> 
> Even for the "survey" part, would it be useful to have a key-value and
> another human-readable format?

The only use I would see if it a user would want a non-decorated output
that is still user-friendly (ie not nul delimited). There is also no
reason we couldn't add this later in the future if we need it. For now,
we could just focus on the "porcelain" and "nul" formats if we want.

> Another thing that I was thinking (as a future feature): what about
> using by default the user-friendly format and using the null-terminated
> format when piping the output to another command (like git-diff does
> with the colors)?

I don't have a strong opinion, but I'm somewhat of the mindset that the
output format should be an explicit choice. Maybe the user would want to
manipulate the user-friendly ouput is some way.

-Justin




[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