spdr870/gitextensions — Issue #660: "Reset File Changes" will Delete The Wrong File when the setting "Refresh on form focus" is checked.
Author: codewarrior0
Created: 2011-10-14 02:48:59+00:00
State: open

The setting "Refresh on form focus" under the Options menu on the Commit dialog will cause the dialog to refresh the status of the changed and staged files.

When you right-click on a file (one not in the repository) from the Commit dialog's file list and choose "Reset file changes", it will first ask "Are you sure you want to reset changes to the selected files?" After choosing Yes, it will detect that the files aren't in the repo and ask "Do you also want to delete new files that are in the selection?" The problem here is that it will refresh the status between the two prompts, clearing the selection. The "delete new files" prompt will delete the first file in the file list, regardless of its status. __This destroyed my work.__