Stash application flags.
Try to reinstate not only the working tree's changes, but also the index's changes.
See Implementation
Stash application flags.