Add comment why /patch endpoint has a hardcoded timestamp
Change-Id: I3f3e847abbae12ffb3b00577d4810554664c1224
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user