Branchout / branchout

A manyrepo management tool to allow for local monorepo projecting while keeping everything in distinct repositories
Apache License 2.0
9 stars 2 forks source link

Sorting inconsistent between windows/linux/mac - creates BO root repo churn #81

Closed fredcooke closed 3 years ago

fredcooke commented 3 years ago

If different team members are using different OSes with different default behaviour for sort then the repo gets churned a lot.

In practice, for us, at least, mostly this comes down to the following scenario:

something-a
somethingb
something-c
somethingd

Which comes first? Mac and Linux do this differently, Linux leaves it alone (it is already sorted) and Mac sorts it differently:

sort test-sort-file 
something-a
something-c
somethingb
somethingd

However if you include -d mac gives the same result as Linux:

sort -d test-sort-file 
something-a
somethingb
something-c
somethingd

And -d is supported on Linux equally, so I feel we should switch to adding this. PR coming next.