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
@@ -34,6 +34,7 @@ QT_FORWARD_DECLARE_CLASS(QMenu)
|
||||
namespace DiffEditor {
|
||||
|
||||
class DiffEditorController;
|
||||
class ChunkSelection;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
@@ -52,7 +53,9 @@ public:
|
||||
LoadFailed
|
||||
};
|
||||
|
||||
QString makePatch(int fileIndex, int chunkIndex,
|
||||
static ChunkData filterChunk(const ChunkData &data,
|
||||
const ChunkSelection &selection, bool revert);
|
||||
QString makePatch(int fileIndex, int chunkIndex, const ChunkSelection &selection,
|
||||
bool revert, bool addPrefix = false,
|
||||
const QString &overriddenFileName = QString()) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user