| 1027 | } |
| 1028 | |
| 1029 | void GitPlugin::unstage( const std::vector<std::string>& files ) { |
| 1030 | if ( files.empty() ) |
| 1031 | return; |
| 1032 | runAsync( |
| 1033 | [this, files]() { |
| 1034 | return mGit->reset( fixFilePaths( files ), mGit->repoPath( files[0] ) ); |
| 1035 | }, |
| 1036 | true, false ); |
| 1037 | } |
| 1038 | |
| 1039 | void GitPlugin::discard( const std::vector<std::string>& files ) { |
| 1040 | UIMessageBox* msgBox = UIMessageBox::New( |