Fix common path "calculation" from logs of multiple branches.
commit583e170706f5d69770d0de220286f8f0f73667f3
authorSimon Hausmann <shausman@trolltech.com>
Thu, 7 Jun 2007 07:37:13 +0000 (7 09:37 +0200)
committerSimon Hausmann <shausman@trolltech.com>
Thu, 7 Jun 2007 07:37:13 +0000 (7 09:37 +0200)
tree9764257011f5c1f96afff586187c5099a0f577f6
parent845b42cb6c1c1e80c4283234ea2162cae809bd50
Fix common path "calculation" from logs of multiple branches.
Need to use min instead of max for prev/cur to avoid out-of-bounds
string access. Also treat "i" as index of the last match instead of
a length because in case of a complete match of the two strings
i was off by one.

Signed-off-by: Simon Hausmann <shausman@trolltech.com>
contrib/fast-import/git-p4