Fix serious performance regression.
authorNicolás Alvarez <nicolas.alvarez@gmail.com>
Thu, 23 Dec 2010 20:28:52 +0000 (17:28 -0300)
committerNicolás Alvarez <nicolas.alvarez@gmail.com>
Thu, 23 Dec 2010 20:28:52 +0000 (17:28 -0300)
commitebac0993e896d18e0809fbb1167edf99b2677ac3
tree33edb89b6bf1634ede66baa5a4bcfa9e17e7cdfa
parent409d8bc4cbaade82672f251c45178c3cfed4619d
Fix serious performance regression.

In Repository::commit, don't call startFastImport() if we have nothing to
write to the fastImport stream. startFastImport() may start new
git-fast-import processes if they were previously killed, so it may be
extremely slow to call it frequently if it's not necessary.
src/repository.cpp