forked from qt-creator/qt-creator
DiffEditor: Stage and unstage selected lines for Git
Fixes: QTCREATORBUG-19071 Change-Id: I560ba208e68e477ea865e499847d819cfdfeb6f3 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Jarek Kobus
parent
2758682723
commit
1766832918
@@ -99,6 +99,15 @@ public:
|
||||
bool contextChunk = false;
|
||||
};
|
||||
|
||||
class DIFFEDITOR_EXPORT ChunkSelection {
|
||||
public:
|
||||
ChunkSelection() {}
|
||||
ChunkSelection(int s, int c) : startRow(s), selectedRowsCount(c) {}
|
||||
bool isNull() const { return selectedRowsCount <= 0; }
|
||||
int startRow = -1;
|
||||
int selectedRowsCount = 0;
|
||||
};
|
||||
|
||||
class DIFFEDITOR_EXPORT FileData {
|
||||
public:
|
||||
enum FileOperation {
|
||||
|
||||
Reference in New Issue
Block a user