Add comment why /patch endpoint has a hardcoded timestamp

Change-Id: I3f3e847abbae12ffb3b00577d4810554664c1224
This commit is contained in:
David Pursehouse
2015-07-27 12:54:13 +09:00
parent a853df32ac
commit 75025586f2

View File

@@ -144,7 +144,7 @@ public class GetPatch implements RestReadView<RevisionResource> {
}
b.append("From ").append(commit.getName())
.append(' ')
.append("Mon Sep 17 00:00:00 2001\n")
.append("Mon Sep 17 00:00:00 2001\n") // Fixed timestamp to match output of C Git's format-patch
.append("From: ").append(author.getName())
.append(" <").append(author.getEmailAddress()).append(">\n")
.append("Date: ").append(formatDate(author)).append('\n')