aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2e92a32..a00c6dc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -46,7 +46,14 @@ QHash<QByteArray, QByteArray> loadIdentityMapFile(const QString &fileName)
if (space == -1)
continue; // invalid line
- QByteArray realname = line.mid(space).trimmed();
+ // Support git-svn author files, too
+ // - svn2git native: loginname Joe User <user@example.com>
+ // - git-svn: loginname = Joe User <user@example.com>
+ int rightspace = space;
+ if (line.indexOf(" = ") == space)
+ rightspace += 2;
+
+ QByteArray realname = line.mid(rightspace).trimmed();
line.truncate(space);
result.insert(line, realname);
};