ok/jj
1
0
Fork 0
forked from mirrors/jj

git_backend: remove redundant copy back of author timestamp

Only the committer timestamp can be updated inside a loop.
This commit is contained in:
Yuya Nishihara 2023-10-30 19:39:31 +09:00
parent f5aa739c70
commit 1788b5014e

View file

@ -836,9 +836,8 @@ impl Backend for GitBackend {
}
}
};
// Update the signatures to match the ones that were actually written to the
// object store
contents.author.timestamp.timestamp = MillisSinceEpoch(author.when().seconds() * 1000);
// Update the signature to match the one that was actually written to the object
// store
contents.committer.timestamp.timestamp =
MillisSinceEpoch(committer.when().seconds() * 1000);
let mut mut_table = table.start_mutation();