mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-18 11:33:23 +03:00
Fix conflict discard and merge view copy commands
- add Discard actions for conflicted files and conflict groups - restore discarded conflicts from HEAD in both index and working tree - restrict regular discard actions to changed tracked files - preserve default editor commands when replacing an editor document - enable copying from the read-only merge-view side panels - cover conflict restoration and merge-side copying - document build parallelism and function-spacing conventions
This commit is contained in:
@@ -323,11 +323,12 @@ class GitPlugin : public PluginBase {
|
||||
|
||||
void unstage( const std::vector<std::string>& files );
|
||||
|
||||
enum class FileOperation { Stage, Unstage, Discard };
|
||||
enum class FileOperation { Stage, Unstage, Discard, RestoreHead };
|
||||
|
||||
void runFileOperation( std::vector<std::string> files, FileOperation operation );
|
||||
|
||||
void discard( const std::vector<std::string>& files );
|
||||
void discardConflicts( const std::vector<std::string>& files );
|
||||
|
||||
void discard( const std::string& file );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user