Commit 465c3b38d59548648521fa4cdbd3d8a832059bb6

Carlos Martín Nieto 2015-12-09T19:16:11

reset: perform the checkout before moving HEAD or the index This keeps the state of the workdir the same as one from HEAD, removing a source of possible confusion when calculating the work that is to be done.