From 197979b6a641b8b5fa4856c700b1235491c73a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Alvarez?= Date: Mon, 18 Apr 2011 02:23:13 -0300 Subject: Use +0000 instead of -0000 for timezone indicator in timestamps. Git seems to always output +0000, so when filter-branching, every single commit changes hash because dates are changed from - to +0. --- src/repository.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repository.cpp b/src/repository.cpp index 2f8e16f..e6ea81c 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -470,7 +470,7 @@ void Repository::finalizeTags() QByteArray s = "progress Creating annotated tag " + tagName.toUtf8() + " from ref " + branchRef + "\n" + "tag " + tagName.toUtf8() + "\n" + "from " + branchRef + "\n" - + "tagger " + tag.author + ' ' + QByteArray::number(tag.dt) + " -0000" + "\n" + + "tagger " + tag.author + ' ' + QByteArray::number(tag.dt) + " +0000" + "\n" + "data " + QByteArray::number( message.length() ) + "\n"; fastImport.write(s); } @@ -645,7 +645,7 @@ void Repository::Transaction::commit() s.setCodec("UTF-8"); s << "commit " << branchRef << endl; s << "mark :" << QByteArray::number(mark) << endl; - s << "committer " << QString::fromUtf8(author) << ' ' << datetime << " -0000" << endl; + s << "committer " << QString::fromUtf8(author) << ' ' << datetime << " +0000" << endl; s << "data " << message.length() << endl; } -- cgit v1.2.1