From: Michael Haggerty <mhagger@alum.mit.edu>
To: Jeff King <peff@peff.net>
Cc: Zach <zach@letmesearchthat.com>, git@vger.kernel.org
Subject: Re: Alphabetize git config --list
Date: Tue, 29 May 2012 07:21:47 +0200 [thread overview]
Message-ID: <4FC45CEB.4070808@alum.mit.edu> (raw)
In-Reply-To: <20120528212309.GA4220@sigill.intra.peff.net>
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@alum.mit.edu
http://softwareswirl.blogspot.com/
next prev parent reply other threads:[~2012-05-29 5:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 20:58 Alphabetize git config --list Zach
2012-05-28 21:23 ` Jeff King
2012-05-29 5:21 ` Michael Haggerty [this message]
2012-05-29 8:49 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FC45CEB.4070808@alum.mit.edu \
--to=mhagger@alum.mit.edu \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=zach@letmesearchthat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).