24#ifndef KICAD_DIFF_PROJECT_FILE_PATCH_H
25#define KICAD_DIFF_PROJECT_FILE_PATCH_H
30#include <nlohmann/json_fwd.hpp>
74 const nlohmann::json& aSource,
75 const wxString& aDocProp,
79 const nlohmann::json& aSource,
80 const wxString& aDocProp );
99 const nlohmann::json& aSource,
100 const std::set<wxString>& aDocProps,
104 const nlohmann::json& aSource,
105 const std::set<wxString>& aDocProps );
bool ApplyProjectFilePatch(nlohmann::json &aTarget, const nlohmann::json &aSource, const wxString &aDocProp, DOC_KIND aKind)
Copy the JSON sub-tree located at the pointer for aDocProp from aSource into aTarget.
DOC_KIND
Document type a diff/merge entry point should route to, derived from a file path's extension.
std::optional< std::string > DocPropJsonPointer(const wxString &aDocProp, DOC_KIND aKind)
Return the JSON pointer (RFC 6901, slash-separated) under which aDocProp is persisted in a ....
bool ApplyProjectFilePatches(const wxString &aOutputProPath, const nlohmann::json &aSource, const std::set< wxString > &aDocProps, DOC_KIND aKind)
Higher-level orchestrator: load the existing aOutputProPath as JSON (or start from aSource if the fil...