From: Thomas Zander Date: Thu, 30 Jul 2009 19:14:05 +0000 (+0300) Subject: Immensely speed up 'vng changes' X-Git-Url: https://repo.or.cz/w/vng.git/commitdiff_plain/5c47bfb30a2fcb47266377c8f1d93a7e317c3001 Immensely speed up 'vng changes' When we are sure we have the correct treeism, set it. This saves us an extra show-ref later. --- diff --git a/src/patches/Commit.cpp b/src/patches/Commit.cpp index d590d24..7935c58 100644 --- a/src/patches/Commit.cpp +++ b/src/patches/Commit.cpp @@ -296,8 +296,10 @@ Commit Commit::createFromStream(QIODevice *device, CommitPrivate *priv) state = Comment; continue; } - else if (line.startsWith("commit ")) + else if (line.startsWith("commit ")) { priv->treeIsm = line.mid(7).trimmed(); + priv->resolvedTreeIsm = priv->treeIsm; + } else if (line.startsWith("parent ")) priv->parentTreeisms.append(line.mid(7).trimmed()); else if (line.startsWith("author "))