commit | 5bea4192e3ba0c935c0995eed84fb79d495b78b2 | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Wed Feb 17 10:04:48 2021 +0100 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Wed Feb 17 10:17:43 2021 +0100 |
tree | e9dcf40a6f224dc31f028a4fda3f69278787906a | |
parent | 4e70be5787b460ab6dcf5fe9c7e7c78c317a5efd [diff] |
ChangeData: use a Java type for RefState rather than byte[] The refState is a set of refs with SHA1s that fingerprints a document in the ChangeIndex. Before it was represented as a repeated byte[] field, which callers had to (de)serialize by calling RefState#{parseStates,toByteArray}. With this change, the (de)serialization is pushed out to the index implementations. Change-Id: Id49ccf3998b27d5c5f40124aaf1e3ad067a59b41