From: Thomas Zander Date: Fri, 24 Jul 2009 06:25:42 +0000 (+0300) Subject: Don't show bisect branches in 'vng branch' X-Git-Url: https://repo.or.cz/w/vng.git/commitdiff_plain/8331402c29212733156e3df18fe42b8e8a1bd407 Don't show bisect branches in 'vng branch' --- 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")))