Re: [PATCH v4 1/9] checkout tests: index should be clean after dwim checkout

2018-06-01 Thread Ævar Arnfjörð Bjarmason
On Fri, Jun 01 2018, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> Assert that whenever there's a DWIM checkout that the index should be >> clean afterwards, in addition to the correct branch being checked-out. >> ... >> So let's amend the tests (mostly added in) 399e4a1c56

Re: [PATCH v4 1/9] checkout tests: index should be clean after dwim checkout

2018-05-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Assert that whenever there's a DWIM checkout that the index should be > clean afterwards, in addition to the correct branch being checked-out. > ... > So let's amend the tests (mostly added in) 399e4a1c56 ("t2024: Add > tests verifying current DWIM behavior of

[PATCH v4 1/9] checkout tests: index should be clean after dwim checkout

2018-05-31 Thread Ævar Arnfjörð Bjarmason
Assert that whenever there's a DWIM checkout that the index should be clean afterwards, in addition to the correct branch being checked-out. The way the DWIM checkout code in checkout.[ch] works is by looping over all remotes, and for each remote trying to find if a given reference name only