Elijah Newren <newren@xxxxxxxxx> writes: >>> We correct the order by instructing the diff_tree machinery to compare >>> entries using df_name_compare instead of base_name_compare. > > Doh! Yep, you're right. My patch would not handle that case > correctly. If all you want is to force a particular order of paths in the output (e.g. depth first) in this one single application, the cleanest way might be to let the diffcore do its work and at the very end sort the elements in the diff_queued_diff to your liking (c.f. diffcore_fix_diff_index() that uses diffnamecmp() to sort the list). -- 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