From 5c47bfb30a2fcb47266377c8f1d93a7e317c3001 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Thu, 30 Jul 2009 22:14:05 +0300 Subject: [PATCH] Immensely speed up 'vng changes' When we are sure we have the correct treeism, set it. This saves us an extra show-ref later. --- src/patches/Commit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ")) -- 2.11.4.GIT