Re: Alphabetize git config --list

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

 



On 05/28/2012 11:23 PM, Jeff King wrote:
On Mon, May 28, 2012 at 01:58:28PM -0700, Zach wrote:

I was wondering if it would be possible to alphabetically order git
config --list by default.

Essentially this
$ git config --list | sort

No, it's not a good idea; the order of keys is important. For example,
[...]

Is the order of *keys* important, or only the order of *values* for a given key? I believe that one could sort the output by key as long as the values for each key are kept in their original order (i.e., sort stably by key). This would indeed make it easier to read the output.

Michael

--
Michael Haggerty
mhagger@xxxxxxxxxxxx
http://softwareswirl.blogspot.com/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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]