mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 10:45:39 +03:00
Diff required
This commit is contained in:
parent
e179402308
commit
10d635b9af
@ -157,7 +157,7 @@ FileContextMenu::FileContextMenu(RepoView *view, const QStringList &files,
|
||||
if (commits.isEmpty()) {
|
||||
handleUncommittedChanges(index, files);
|
||||
} else {
|
||||
handleCommits(commits, files);
|
||||
handleCommits(commits, files, diff);
|
||||
}
|
||||
|
||||
// TODO: moving this into handleWorkingDirChanges()? Because
|
||||
@ -395,7 +395,8 @@ void FileContextMenu::handleUncommittedChanges(const git::Index &index,
|
||||
}
|
||||
|
||||
void FileContextMenu::handleCommits(const QList<git::Commit> &commits,
|
||||
const QStringList &files) {
|
||||
const QStringList &files,
|
||||
const git::Diff &diff) {
|
||||
// because this might not live anymore
|
||||
// when the lambdas are handled
|
||||
const auto view = mView;
|
||||
|
@ -35,7 +35,7 @@ private:
|
||||
void handleUncommittedChanges(const git::Index &index,
|
||||
const QStringList &files);
|
||||
void handleCommits(const QList<git::Commit> &commits,
|
||||
const QStringList &files);
|
||||
const QStringList &files, const git::Diff &);
|
||||
|
||||
RepoView *mView;
|
||||
QStringList mFiles;
|
||||
|
Loading…
Reference in New Issue
Block a user