Git: Add fetch to branch view

Allow fetching from a single or from all remotes.

Change-Id: I2e0e69a092c3a8bb58f65af877c9af8bb59c92d9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Andre Hartmann
2018-09-12 22:10:22 +02:00
committed by André Hartmann
parent 62072903b0
commit 8c8f166535
3 changed files with 22 additions and 0 deletions

View File

@@ -25,6 +25,8 @@
#pragma once
#include <utils/optional.h>
#include <QAbstractListModel>
#include <QVariant>
@@ -81,6 +83,7 @@ public:
QModelIndex addBranch(const QString &name, bool track, const QModelIndex &trackedBranch);
void setRemoteTracking(const QModelIndex &trackingIndex);
void setOldBranchesIncluded(bool value);
Utils::optional<QString> remoteName(const QModelIndex &idx) const;
private:
void parseOutputLine(const QString &line);