Rename UnionPatch::patch -> patchIfSet
commitc4f4a4d48f39d1e0a153413043a4eca3e04d85b3
authorAlfred Fuller <afuller@fb.com>
Tue, 13 Sep 2022 02:21:16 +0000 (12 19:21 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 13 Sep 2022 02:21:16 +0000 (12 19:21 -0700)
tree3e74dd0d36c7edb794151ab1a9a9fb041af62784
parentf3e1cbc7c526558e3927a3491fd0cad22fdaf30e
Rename UnionPatch::patch -> patchIfSet

Summary: I turns out most usage of 'patch' was buggy as, it is assumed to mean 'ensure and patch', so renaming this function to avoid confusion. A future diff will add 'lensing' versions to match StructPatch

Differential Revision: D39413294

fbshipit-source-id: edbd75604e02ca2cb7fb54e18fc39464c3a0200f
third-party/thrift/src/thrift/lib/cpp2/op/detail/BasePatch.h
third-party/thrift/src/thrift/test/StructPatchTest.cpp