From: Junio C Hamano Date: Thu, 17 Sep 2015 16:49:58 GMT Subject: Re: [PATCH v4 3/8] branch: roll show_detached HEAD into regular ref_list Message-ID: In-Reply-To: Matthieu Moy writes: > But that's still workable: struct ref_sorting could contain a flag > "head_first" that would be set by ref_default_sorting() and only it, and > then read by cmp_ref_sorting. Hmm, I am still puzzled. "refname" atom would expand to things like "HEAD", "refs/heads/master", etc., so I still do not see a need for head_first option at all. "HEAD" will sort before "refs/anything" always, no?