git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* t3203: --sort=objectsize failure on Windows
@ 2015-10-24  7:49 Johannes Sixt
  2015-10-24 14:25 ` Karthik Nayak
  2015-10-24 14:42 ` [PATCH] ref-filter: fallback on alphabetical comparison Karthik Nayak
  0 siblings, 2 replies; 5+ messages in thread
From: Johannes Sixt @ 2015-10-24  7:49 UTC (permalink / raw)
  To: Karthik Nayak; +Cc: Git Mailing List

On Windows, I observe a failure of the test case 'git branch `--sort` 
option' introduced by aedcb7dc (branch.c: use 'ref-filter' APIs). The 
reason is that the resulting order generated by qsort is unspecified for 
entries that compare equal. In fact, the test case sorts 4 entries where 
there are only 2 different values.

To achieve a deterministic order, perhaps cmp_ref_sorting() should fall 
back to alphabetic comparison if the other criterion (when used) 
compares equal?

-- Hannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-25  7:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-24  7:49 t3203: --sort=objectsize failure on Windows Johannes Sixt
2015-10-24 14:25 ` Karthik Nayak
2015-10-24 14:42 ` [PATCH] ref-filter: fallback on alphabetical comparison Karthik Nayak
2015-10-25  0:18   ` Eric Sunshine
2015-10-25  7:15     ` Karthik Nayak

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).