From 8331402c29212733156e3df18fe42b8e8a1bd407 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Fri, 24 Jul 2009 09:25:42 +0300 Subject: [PATCH] Don't show bisect branches in 'vng branch' --- src/Configuration.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 25302cd..036d225 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -297,6 +297,10 @@ void Configuration::fetchBranches() break; if (lineLength > 46) { // only take stuff that is in the 'refs' dir. QString name = QString::fromUtf8(buf + 46); + const bool remotes = name.startsWith(QLatin1String("remotes/")); + if (!remotes && !name.startsWith(QLatin1String("heads/"))) + continue; + name = name.trimmed(); // remove linefeed Branch branch(name, QString::fromLatin1(buf, 40)); if (name.startsWith(QLatin1String("remotes"))) -- 2.11.4.GIT